Open akx opened 3 months ago
types.SimpleNamespace does what the struct class did, but with a better repr and better IDE etc. support (e.g. PyCharm can infer that the attrs passed into the ctor will be available on the instance).
types.SimpleNamespace
struct
repr
types.SimpleNamespace
does what thestruct
class did, but with a betterrepr
and better IDE etc. support (e.g. PyCharm can infer that the attrs passed into the ctor will be available on the instance).