You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change TypedDict to standard class in most of the current code #35
Keeping writable global variables in a module using a dictionary is good. But to type it and keep mypy happy, we need to use a class that derives from TypedDict. It's still good. But at this point, where we got the whole overhead of creating a class, it would be still better to simply use a real class. TypedDicts are great for data that is already in a dict form, such as JSON data. But general recommendations around the web are to start with a standard class (consider dataclasses) unless we have a reason to use a TypedDict.
Proposition
Use standard classes for GlobalVariables in the different modules.
New workflow
It's not really that much of a problem, mostly "code beauty".
changed the title [-]Change TypedDict to dataclass in most of the current code[/-][+]Change TypedDict to standard class in most of the current code[/+]on Aug 25, 2026
Activity
[-]Change TypedDict to dataclass in most of the current code[/-][+]Change TypedDict to standard class in most of the current code[/+]