Message414558
| Author | gvanrossum |
|---|---|
| Recipients | AlexWaygood, FHTMitchell, JelleZijlstra, dlukes, eric.smith, gvanrossum, kj, levkivskyi, python-dev, rhettinger, serhiy.storchaka, sobolevn |
| Date | 2022-03-05.02:55:26 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1646448926.76.0.571980453882.issue43923@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
Mypy seems to allow this:
from typing import NamedTuple, TypeVar, Generic, List, Tuple
T = TypeVar("T")
class New(NamedTuple, Generic[T]):
x: List[T]
y: Tuple[T, T]
It's true that pyright doesn't, but maybe that's because it doesn't work in 3.9-3.10? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-03-05 02:55:26 | gvanrossum | set | recipients: + gvanrossum, rhettinger, eric.smith, python-dev, serhiy.storchaka, levkivskyi, dlukes, JelleZijlstra, FHTMitchell, sobolevn, kj, AlexWaygood |
| 2022-03-05 02:55:26 | gvanrossum | set | messageid: <1646448926.76.0.571980453882.issue43923@roundup.psfhosted.org> |
| 2022-03-05 02:55:26 | gvanrossum | link | issue43923 messages |
| 2022-03-05 02:55:26 | gvanrossum | create | |