File tree Expand file tree Collapse file tree 4 files changed +24
-6
lines changed
stdlib/@tests/stubtest_allowlists Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -409,8 +409,6 @@ typing\.Protocol
409409typing(_extensions)?\._TypedDict
410410typing(_extensions)?\.Any.*
411411typing(_extensions)?\.TypedDict
412- typing_extensions\.ParamSpec.*
413- typing_extensions\.TypeVar.*
414412
415413# Special primitives
416414typing(_extensions)?\.AbstractSet
@@ -453,10 +451,6 @@ typing(_extensions)?\.TextIO\.errors
453451typing(_extensions)?\.TextIO\.line_buffering
454452typing(_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
Original file line number Diff line number Diff line change @@ -107,6 +107,14 @@ tkinter.tix.Shell
107107tkinter.tix.TclVersion
108108tkinter.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
Original file line number Diff line number Diff line change @@ -78,6 +78,14 @@ tkinter.tix.Shell
7878tkinter.tix.TclVersion
7979tkinter.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
Original file line number Diff line number Diff line change @@ -78,6 +78,14 @@ tkinter.tix.Shell
7878tkinter.tix.TclVersion
7979tkinter.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
You can’t perform that action at this time.
0 commit comments