Skip to content

Commit 30d6baf

Browse files
authored
Update mypy_extensions deprecation messages (#13876)
CC @AlexWaygood
1 parent de7404b commit 30d6baf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stubs/mypy-extensions/mypy_extensions.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _U = TypeVar("_U")
1111
# Internal mypy fallback type for all typed dicts (does not exist at runtime)
1212
# N.B. Keep this mostly in sync with typing(_extensions)._TypedDict
1313
@type_check_only
14-
@deprecated("mypy_extensions._TypedDict package is deprecated")
14+
@deprecated("Use typing._TypedDict instead")
1515
class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
1616
__total__: ClassVar[bool]
1717
# Unlike typing(_extensions).TypedDict,
@@ -38,7 +38,7 @@ class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
3838
# supposedly incompatible definitions of `__or__` and `__ior__`:
3939
def __ior__(self, value: Self, /) -> Self: ... # type: ignore[misc]
4040

41-
@deprecated("mypy_extensions.TypedDict is deprecated, use typing.TypedDict instead")
41+
@deprecated("Use typing.TypedDict or typing_extensions.TypedDict instead")
4242
def TypedDict(typename: str, fields: dict[str, type[Any]], total: bool = ...) -> type[dict[str, Any]]: ...
4343
@overload
4444
def Arg(type: _T, name: str | None = ...) -> _T: ...
@@ -67,7 +67,7 @@ def KwArg() -> Any: ...
6767

6868
# Return type that indicates a function does not return.
6969
# Deprecated: Use typing.NoReturn instead.
70-
@deprecated("mypy_extensions.NoReturn is deprecated, use typing.NoReturn or typing.Never instead")
70+
@deprecated("Use typing.NoReturn or typing.Never instead")
7171
class NoReturn: ...
7272

7373
# This is consistent with implementation. Usage intends for this as

0 commit comments

Comments
 (0)