File tree 7 files changed +8
-29
lines changed
tests/stubtest_allowlists 7 files changed +8
-29
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ stubdefaulter==0.1.0
21
21
termcolor>=2.3
22
22
tomli==2.0.1
23
23
tomlkit==0.12.1
24
- typing_extensions
24
+ typing_extensions>=4.8.0
25
25
26
26
# Type stubs used to type check our scripts.
27
27
types-pyyaml>=6.0.12.7
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ __all__ = [
149
149
"Collection" ,
150
150
"Container" ,
151
151
"Dict" ,
152
+ "Doc" ,
152
153
"ForwardRef" ,
153
154
"FrozenSet" ,
154
155
"Generator" ,
@@ -489,3 +490,9 @@ if sys.version_info >= (3, 13):
489
490
else :
490
491
def is_protocol (__tp : type ) -> bool : ...
491
492
def get_protocol_members (__tp : type ) -> frozenset [str ]: ...
493
+
494
+ class Doc :
495
+ documentation : str
496
+ def __init__ (self , __documentation : str ) -> None : ...
497
+ def __hash__ (self ) -> int : ...
498
+ def __eq__ (self , other : object ) -> bool : ...
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ types.GenericAlias.__mro_entries__
23
23
types.GenericAlias.__call__ # Would be complicated to fix properly, Any could silence problems. #6392
24
24
typing._SpecialForm.__mro_entries__
25
25
weakref.ProxyType.__reversed__ # Doesn't really exist
26
- typing_extensions\.get_original_bases
27
26
28
27
# Exist at runtime for internal reasons, no need to put them in the stub
29
28
typing_extensions\.TypeAliasType\.__call__
@@ -139,9 +138,6 @@ dataclasses.KW_ONLY
139
138
typing.ParamSpec(Args|Kwargs).__origin__
140
139
141
140
# https://github.com/python/mypy/issues/15302
142
- typing_extensions\.assert_never
143
- typing_extensions\.assert_type
144
- typing_extensions\.reveal_type
145
141
typing.NewType.__call__
146
142
147
143
# Super-special typing primitives
@@ -163,6 +159,3 @@ pkgutil.ImpImporter\..*
163
159
pkgutil.ImpLoader\..*
164
160
165
161
types.CodeType.replace # stubtest thinks default values are None but None doesn't work at runtime
166
-
167
- # https://github.com/python/mypy/issues/15302
168
- typing_extensions\.override
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ enum.Enum._generate_next_value_
14
14
enum.StrEnum._generate_next_value_
15
15
importlib.abc.Finder.find_module
16
16
tkinter._VersionInfoType.__doc__
17
- typing_extensions\.get_original_bases
18
17
typing.NewType.__call__
19
18
typing.NewType.__mro_entries__
20
19
@@ -124,6 +123,3 @@ asynchat.async_chat.use_encoding
124
123
asynchat.find_prefix_at_end
125
124
pkgutil.ImpImporter\..*
126
125
pkgutil.ImpLoader\..*
127
-
128
- # https://github.com/python/mypy/issues/15302
129
- typing_extensions\.override
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ typing.NamedTuple._replace
41
41
typing._SpecialForm.__new__
42
42
xml.etree.ElementTree.TreeBuilder.start # Discrepancy between Python and C modules, fixed in bpo-39495
43
43
xml.etree.cElementTree.TreeBuilder.start # bpo-39495
44
- typing_extensions\.get_original_bases
45
44
46
45
# Exist at runtime for internal reasons, no need to put them in the stub
47
46
typing_extensions\.TypeAliasType\.__call__
@@ -141,12 +140,6 @@ types.MemberDescriptorType.__get__
141
140
types.MethodDescriptorType.__get__
142
141
types.WrapperDescriptorType.__get__
143
142
144
- # https://github.com/python/mypy/issues/15302
145
- typing_extensions\.assert_never
146
- typing_extensions\.assert_type
147
- typing_extensions\.reveal_type
148
- typing_extensions\.override
149
-
150
143
# We lie about the existence of these methods
151
144
.*.__buffer__
152
145
.*.__release_buffer__
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ tkinter.Tk.split
37
37
types.GenericAlias.__getattr__
38
38
types.GenericAlias.__call__ # Would be complicated to fix properly, Any could silence problems. #6392
39
39
weakref.ProxyType.__reversed__ # Doesn't really exist
40
- typing_extensions\.get_original_bases
41
40
42
41
# Exist at runtime for internal reasons, no need to put them in the stub
43
42
typing_extensions\.TypeAliasType\.__call__
@@ -128,12 +127,6 @@ types.MemberDescriptorType.__get__
128
127
types.MethodDescriptorType.__get__
129
128
types.WrapperDescriptorType.__get__
130
129
131
- # https://github.com/python/mypy/issues/15302
132
- typing_extensions\.assert_never
133
- typing_extensions\.assert_type
134
- typing_extensions\.reveal_type
135
- typing_extensions\.override
136
-
137
130
# Super-special typing primitives
138
131
typing\.NamedTuple
139
132
typing\.Annotated
Original file line number Diff line number Diff line change @@ -458,9 +458,6 @@ typing_extensions.NewType.__mro_entries__ # just exists for an error message
458
458
459
459
# https://github.com/python/mypy/issues/15302
460
460
typing_extensions.NewType.__call__
461
- typing_extensions\.deprecated
462
- typing_extensions\.get_protocol_members
463
- typing_extensions\.is_protocol
464
461
465
462
# Typing-related weirdness
466
463
_collections_abc.Callable
You can’t perform that action at this time.
0 commit comments