Message414558
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? |
|
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 | |
|