diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index c42acd4bf..be0c29c89 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -871,6 +871,9 @@ class NamedTuple(tuple[Any, ...]): @overload def __init__(self, typename: str, fields: Iterable[tuple[str, Any]], /) -> None: ... @overload + @typing_extensions.deprecated( + "Creating a typing.NamedTuple using keyword arguments is deprecated and support will be removed in Python 3.15" + ) def __init__(self, typename: str, fields: None = None, /, **kwargs: Any) -> None: ... @classmethod def _make(cls, iterable: Iterable[Any]) -> typing_extensions.Self: ...