Skip to content

Commit 96d900e

Browse files
committed
More stubtest fixes
1 parent 8a790b1 commit 96d900e

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

stdlib/@tests/stubtest_allowlists/common.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,6 @@ typing\.Protocol
409409
typing(_extensions)?\._TypedDict
410410
typing(_extensions)?\.Any.*
411411
typing(_extensions)?\.TypedDict
412-
typing_extensions\.ParamSpec.*
413-
typing_extensions\.TypeVar.*
414412

415413
# Special primitives
416414
typing(_extensions)?\.AbstractSet
@@ -453,10 +451,6 @@ typing(_extensions)?\.TextIO\.errors
453451
typing(_extensions)?\.TextIO\.line_buffering
454452
typing(_extensions)?\.TextIO\.newlines
455453

456-
# These are typing._SpecialGenericAlias at runtime, which is not a real type, but it
457-
# behaves like one in most cases
458-
typing(_extensions)?\.(Async)?ContextManager
459-
460454
# Iterable classes that don't define __iter__ at runtime (usually iterable via __getitem__)
461455
# These would ideally be special-cased by type checkers; see https://github.com/python/mypy/issues/2220
462456
# See https://github.com/python/typeshed/commit/97bc450acd60c1bcdafef3ce8fbe3b95a9c0cac3

stdlib/@tests/stubtest_allowlists/py310.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ tkinter.tix.Shell
107107
tkinter.tix.TclVersion
108108
tkinter.tix.TkVersion
109109

110+
# Details of runtime definition don't need to be in stubs
111+
typing_extensions\.ParamSpec.*
112+
typing_extensions\.TypeVar.*
113+
114+
# These are typing._SpecialGenericAlias at runtime, which is not a real type, but it
115+
# behaves like one in most cases
116+
typing(_extensions)?\.(Async)?ContextManager
117+
110118

111119
# =======
112120
# <= 3.13

stdlib/@tests/stubtest_allowlists/py311.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ tkinter.tix.Shell
7878
tkinter.tix.TclVersion
7979
tkinter.tix.TkVersion
8080

81+
# Details of runtime definition don't need to be in stubs
82+
typing_extensions\.ParamSpec.*
83+
typing_extensions\.TypeVar.*
84+
85+
# These are typing._SpecialGenericAlias at runtime, which is not a real type, but it
86+
# behaves like one in most cases
87+
typing(_extensions)?\.(Async)?ContextManager
88+
8189

8290
# =======
8391
# <= 3.13

stdlib/@tests/stubtest_allowlists/py312.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ tkinter.tix.Shell
7878
tkinter.tix.TclVersion
7979
tkinter.tix.TkVersion
8080

81+
# Details of runtime definition don't need to be in stubs
82+
typing_extensions\.ParamSpec.*
83+
typing_extensions\.TypeVar.*
84+
85+
# These are typing._SpecialGenericAlias at runtime, which is not a real type, but it
86+
# behaves like one in most cases
87+
typing(_extensions)?\.(Async)?ContextManager
88+
8189

8290
# =======
8391
# <= 3.13

0 commit comments

Comments
 (0)