Closed
Description
Pitch
I have an API that accepts dynamically created NamedTuple types. I'd at least like to specify NamedTuple
as a type hint, and have mypy allow any attribute access on top of Tuple operations. The infinitely wider scope of Any
isn't too attractive. (Is there something else suitable from typing
that I'm missing?)
error: "NamedTuple" has no attribute "x" [attr-defined]