@@ -127,16 +127,16 @@ class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
127
127
__optional_keys__ : ClassVar [frozenset [str ]]
128
128
__total__ : ClassVar [bool ]
129
129
def copy (self : _typeshed .Self ) -> _typeshed .Self : ...
130
- # Using NoReturn so that only calls using mypy plugin hook that specialize the signature
130
+ # Using Never so that only calls using mypy plugin hook that specialize the signature
131
131
# can go through.
132
- def setdefault (self , k : NoReturn , default : object ) -> object : ...
132
+ def setdefault (self , k : Never , default : object ) -> object : ...
133
133
# Mypy plugin hook for 'pop' expects that 'default' has a type variable type.
134
- def pop (self , k : NoReturn , default : _T = ...) -> object : ... # pyright: ignore[reportInvalidTypeVarUse]
134
+ def pop (self , k : Never , default : _T = ...) -> object : ... # pyright: ignore[reportInvalidTypeVarUse]
135
135
def update (self : _T , __m : _T ) -> None : ...
136
136
def items (self ) -> dict_items [str , object ]: ...
137
137
def keys (self ) -> dict_keys [str , object ]: ...
138
138
def values (self ) -> dict_values [str , object ]: ...
139
- def __delitem__ (self , k : NoReturn ) -> None : ...
139
+ def __delitem__ (self , k : Never ) -> None : ...
140
140
if sys .version_info >= (3 , 9 ):
141
141
def __or__ (self : _typeshed .Self , __value : _typeshed .Self ) -> _typeshed .Self : ...
142
142
def __ior__ (self : _typeshed .Self , __value : _typeshed .Self ) -> _typeshed .Self : ...
@@ -221,9 +221,9 @@ if sys.version_info >= (3, 11):
221
221
)
222
222
else :
223
223
Self : _SpecialForm
224
- Never : _SpecialForm
224
+ Never : _SpecialForm = ...
225
225
def reveal_type (__obj : _T ) -> _T : ...
226
- def assert_never (__arg : NoReturn ) -> NoReturn : ...
226
+ def assert_never (__arg : Never ) -> Never : ...
227
227
def assert_type (__val : _T , __typ : Any ) -> _T : ...
228
228
def clear_overloads () -> None : ...
229
229
def get_overloads (func : Callable [..., object ]) -> Sequence [Callable [..., object ]]: ...
0 commit comments