8000 moduleinfo: delete (#9924) · python/mypy@a540a1a · GitHub
[go: up one dir, main page]

Skip to content
< 10000 script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-99b04cc350b5.js" defer="defer">

Commit a540a1a

Browse files
authored
moduleinfo: delete (#9924)
I removed the documentation for this error already in #9675. This list of modules here that we don't have stubs for is now down to: ``` sqlite3.dump turtledemo xml.sax._exceptions xml.sax.expatreader ``` Co-authored-by: hauntsaninja <>
1 parent 37a107e commit a540a1a

File tree

5 files changed

+0
-398
lines changed

5 files changed

+0
-398
lines changed

mypy/build.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
)
4141
if TYPE_CHECKING:
4242
from mypy.report import Reports # Avoid unconditional slow import
43-
from mypy import moduleinfo
4443
from mypy.fixup import fixup_module
4544
from mypy.modulefinder import (
4645
BuildSource, compute_search_paths, FindModuleCache, SearchPaths, ModuleSearchResult,
@@ -2498,11 +2497,6 @@ def module_not_found(manager: BuildManager, line: int, caller_state: State,
24982497
errors.report(line, 0, "Cannot find 'builtins' module. Typeshed appears broken!",
24992498
blocker=True)
25002499
errors.raise_error()
2501-
elif moduleinfo.is_std_lib_module(manager.options.python_version, target):
2502-
msg = "No library stub file for standard library module '{}'".format(target)
2503-
note = "(Stub files are from https://github.com/python/typeshed)"
2504-
errors.report(line, 0, msg, code=codes.IMPORT)
2505-
errors.report(line, 0, note, severity='note', only_once=True, code=codes.IMPORT)
25062500
else:
25072501
msg, note = reason.error_message_templates()
25082502
errors.report(line, 0, msg.format(target), code=codes.IMPORT)

mypy/moduleinfo.py

Lines changed: 0 additions & 357 deletions
This file was deleted.

mypy/test/testmoduleinfo.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0