From 9f936f16fa5cec8d983cd2ed4006f6806a67e234 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 16 Jun 2020 01:29:38 -0700 Subject: [PATCH 1/1] Prefer more type-safe NamedTuple over SimpleNamespace --- pinch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.1