From: Scott Worley Date: Tue, 16 Jun 2020 08:29:38 +0000 (-0700) Subject: Prefer more type-safe NamedTuple over SimpleNamespace X-Git-Tag: 2.0.0~9 X-Git-Url: http://git.scottworley.com/pinch/commitdiff_plain/9f936f16fa5cec8d983cd2ed4006f6806a67e234?ds=inline Prefer more type-safe NamedTuple over SimpleNamespace --- diff --git a/pinch.py b/pinch.py index f4fd0b5..8fe7df1 100644 --- a/pinch.py +++ b/pinch.py @@ -34,7 +34,7 @@ from typing import ( # Use xdg module when it's less painful to have as a dependency -class XDG(types.SimpleNamespace): +class XDG(NamedTuple): XDG_CACHE_HOME: str