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 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:26gvanrossumsetrecipients: + gvanrossum, rhettinger, eric.smith, python-dev, serhiy.storchaka, levkivskyi, dlukes, JelleZijlstra, FHTMitchell, sobolevn, kj, AlexWaygood
2022-03-05 02:55:26gvanrossumsetmessageid: <1646448926.76.0.571980453882.issue43923@roundup.psfhosted.org>
2022-03-05 02:55:26gvanrossumlinkissue43923 messages
2022-03-05 02:55:26gvanrossumcreate