Skip to content

Commit 5abf4f1

Browse files
committed
Some more
1 parent d192855 commit 5abf4f1

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

tests/stubtest_allowlists/py310.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,8 @@ dataclasses.KW_ONLY
172172

173173
# We pretend it's a read-only property for forward compatibility with 3.12
174174
typing.ParamSpec(Args|Kwargs).__origin__
175+
176+
# https://github.com/python/mypy/issues/15302
177+
typing_extensions\.assert_never
178+
typing_extensions\.assert_type
179+
typing_extensions\.reveal_type

tests/stubtest_allowlists/py37.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,11 @@ types.GetSetDescriptorType.__get__
151151
types.MemberDescriptorType.__get__
152152
types.MethodDescriptorType.__get__
153153
types.WrapperDescriptorType.__get__
154+
155+
# https://github.com/python/mypy/issues/15302
156+
typing_extensions\.assert_never
157+
typing_extensions\.assert_type
158+
typing_extensions\.reveal_type
159+
160+
# Doesn't exist at runtime
161+
typing\.Protocol

tests/stubtest_allowlists/py38.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,8 @@ types.GetSetDescriptorType.__get__
169169
types.MemberDescriptorType.__get__
170170
types.MethodDescriptorType.__get__
171171
types.WrapperDescriptorType.__get__
172+
173+
# https://github.com/python/mypy/issues/15302
174+
typing_extensions\.assert_never
175+
typing_extensions\.assert_type
176+
typing_extensions\.reveal_type

tests/stubtest_allowlists/py39.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,8 @@ types.GetSetDescriptorType.__get__
165165
types.MemberDescriptorType.__get__
166166
types.MethodDescriptorType.__get__
167167
types.WrapperDescriptorType.__get__
168+
169+
# https://github.com/python/mypy/issues/15302
170+
typing_extensions\.assert_never
171+
typing_extensions\.assert_type
172+
typing_extensions\.reveal_type

tests/stubtest_allowlists/py3_common.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,11 @@ re.Pattern.scanner # Undocumented and not useful. #6405
408408
tempfile._TemporaryFileWrapper.[\w_]+ # Dynamically specified by __getattr__, and thus don't exist on the class
409409

410410
# Details of runtime definition don't need to be in stubs
411-
typing_extensions\._SpecialForm
412-
typing\._SpecialForm
413-
typing_extensions\.TypeVar
414-
typing_extensions\.TypeVarTuple
411+
typing_extensions\._SpecialForm.*
412+
typing\._SpecialForm.*
413+
typing_extensions\.TypeVar.*
414+
typing_extensions\.TypeVarTuple.*
415+
typing_extensions\.ParamSpec.*
415416
typing\.Generic
416417

417418
# Special primitives
@@ -420,8 +421,10 @@ typing_extensions\.LiteralString
420421
typing_extensions\.Final
421422
typing_extensions\.Coroutine
422423
typing_extensions\.Awaitable
424+
typing_extensions\.AsyncIterator
423425
typing_extensions\.AsyncIterable
424426
typing_extensions\.AsyncGenerator
427+
typing\.ValuesView
425428
typing\.Sized
426429
typing\.Sequence
427430
typing\.Reversible
@@ -432,12 +435,14 @@ typing\.MutableSequence
432435
typing\.MutableMapping
433436
typing\.Match
434437
typing\.MappingView
438+
typing\.Mapping
435439
typing\.LiteralString
436440
typing\.KeysView
437441
typing\.Iterator
438442
typing\.Iterable
439443
typing\.ItemsView
440444
typing\.Hashable
445+
typing\.Generator
441446
typing\.Coroutine
442447
typing\.Collection
443448
typing\.Container

0 commit comments

Comments
 (0)