Open Lambda-Logan opened 3 years ago
Are you sure this is a bug? The NamedTuple docs say "docstrings and methods", without a mention of nested classes.
At runtime it does work in 3.9, but in 3.6 the inner class just disappears. I'm not sure that's on purpose. I added runtime support for NamedTuple methods in 3.6 I believe, but perhaps a change since then made nested classes also work.
This will show an error.
However, this works fine:
mypy 0.761 Python 3.8.5 (default, Jan 27 2021, 15:41:15) [GCC 9.3.0] on linux