This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sobolevn
Recipients sobolevn
Date 2021-09-24.11:23:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632482621.54.0.232905456931.issue45280@roundup.psfhosted.org>
In-reply-to
Content
While working on `mypy` support of `NamedTuple`s (https://github.com/python/mypy/issues/11047), I've noticed that currently when testing `typing.NamedTuple` cases like:

1. `N = NamedTuple('N')`

and

2.

```python
class N(NamedTuple):
    ...
```

are ignored. 

However, this is an important corner-cases, we need to be sure that use can create empty named tuples if needed.

Related position in code: https://github.com/python/cpython/blob/3f8b23f8ddab75d9b77a3997d54e663187e12cc8/Lib/test/test_typing.py#L4102-L4114

I will send a PR add these two cases.
History
Date User Action Args
2021-09-24 11:23:41sobolevnsetrecipients: + sobolevn
2021-09-24 11:23:41sobolevnsetmessageid: <1632482621.54.0.232905456931.issue45280@roundup.psfhosted.org>
2021-09-24 11:23:41sobolevnlinkissue45280 messages
2021-09-24 11:23:41sobolevncreate