Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadvanced SimpleNamespace typing #688
Comments
|
I think |
|
as far as I can tell, protocols can be used to cast the simple namespace into, but it won't help me typechecking |
Almost, but not completely. IIUC auto-generated |
thanks @ilevkivskyi can you link to related resources about it? |
|
We don't have a "centralized" issues to track this, but you can watch python/mypy#7856 and/or python/mypy#7790 |
the same way we now have
TypedDict, it would be nice to have typed SimpleNamespace with equivalent semantics, so that nested structures can be easily checked. eg