Skip to content

Commit 9004953

Browse files
committed
manual fix for __main__
1 parent 809d119 commit 9004953

File tree

5 files changed

+1
-30
lines changed

5 files changed

+1
-30
lines changed

tests/stubtest_allowlists/py310.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ unicodedata.ucnhash_CAPI
175175
unittest.mock.create_autospec
176176

177177
# Missing from stubs, found by removing --ignore-missing-stub
178-
__main__.T
179178
_ast.Tuple.dims
180179
_codecs.unregister
181180
_collections_abc.AsyncIterable.__class_getitem__

tests/stubtest_allowlists/py37.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ collections.Mapping.get # Adding None to the Union messed up mypy
7777
collections.Sequence.index # Supporting None in end is not mandatory
7878

7979
# Missing from stubs, found by removing --ignore-missing-stub
80-
__main__.T
8180
_dummy_thread.RLock
8281
_imp.source_hash
8382
asyncio.BufferedProtocol.eof_received

tests/stubtest_allowlists/py38.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ collections.Mapping.get # Adding None to the Union messed up mypy
9696
collections.Sequence.index # Supporting None in end is not mandatory
9797

9898
# Missing from stubs, found by removing --ignore-missing-stub
99-
__main__.T
10099
_dummy_thread.RLock
101100
_imp.source_hash
102101
_thread._ExceptHookArgs.n_fields

tests/stubtest_allowlists/py39.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ collections.Mapping.get # Adding None to the Union messed up mypy
111111
collections.Sequence.index # Supporting None in end is not mandatory
112112

113113
# Missing from stubs, found by removing --ignore-missing-stub
114-
__main__.T
115114
_ast.Tuple.dims
116115
_collections_abc.AsyncIterable.__class_getitem__
117116
_collections_abc.Awaitable.__class_getitem__

tests/stubtest_allowlists/py3_common.txt

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ wsgiref.types # Doesn't exist, see comments in file
222222
# ==========
223223
# Allowlist entries that cannot or should not be fixed
224224
# ==========
225+
__main__.*
225226
_pydecimal.* # See comments in file
226227
ast.NodeVisitor.visit_\w+ # Methods are discovered dynamically, see #3796
227228
# Weird special builtins that are typed as functions, but aren't functions
@@ -270,32 +271,6 @@ socket.[A-Z0-9_]+
270271
(termios.[A-Z0-9_]+)?
271272

272273
# Missing from stubs, found by removing --ignore-missing-stub
273-
__main__.Error
274-
__main__.MISSING
275-
__main__.Missing
276-
__main__.Signature
277-
__main__.build_stubs
278-
__main__.get_allowlist_entries
279-
__main__.get_mypy_type_of_runtime_value
280-
__main__.get_stub
281-
__main__.get_typeshed_stdlib_modules
282-
__main__.is_dunder
283-
__main__.is_subtype_helper
284-
__main__.main
285-
__main__.maybe_strip_cls
286-
__main__.parse_options
287-
__main__.test_module
288-
__main__.test_stubs
289-
__main__.verify
290-
__main__.verify_decorator
291-
__main__.verify_funcitem
292-
__main__.verify_mypyfile
293-
__main__.verify_none
294-
__main__.verify_overloadedfuncdef
295-
__main__.verify_typealias
296-
__main__.verify_typeinfo
297-
__main__.verify_typevarexpr
298-
__main__.verify_var
299274
_json.encode_basestring
300275
_markupbase.ParserBase.parse_comment
301276
_markupbase.ParserBase.parse_declaration

0 commit comments

Comments
 (0)