Skip to content

Commit

Permalink
moduleinfo: delete (#9924)
Browse files Browse the repository at this point in the history
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 <>
  • Loading branch information
hauntsaninja authored Jan 20, 2021
1 parent 37a107e commit a540a1a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 398 deletions.
6 changes: 0 additions & 6 deletions mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
)
if TYPE_CHECKING:
from mypy.report import Reports # Avoid unconditional slow import
from mypy import moduleinfo
from mypy.fixup import fixup_module
from mypy.modulefinder import (
BuildSource, compute_search_paths, FindModuleCache, SearchPaths, ModuleSearchResult,
Expand Down Expand Up @@ -2498,11 +2497,6 @@ def module_not_found(manager: BuildManager, line: int, caller_state: State,
errors.report(line, 0, "Cannot find 'builtins' module. Typeshed appears broken!",
blocker=True)
errors.raise_error()
elif moduleinfo.is_std_lib_module(manager.options.python_version, target):
msg = "No library stub file for standard library module '{}'".format(target)
note = "(Stub files are from https://github.com/python/typeshed)"
errors.report(line, 0, msg, code=codes.IMPORT)
errors.report(line, 0, note, severity='note', only_once=True, code=codes.IMPORT)
else:
msg, note = reason.error_message_templates()
errors.report(line, 0, msg.format(target), code=codes.IMPORT)
Expand Down
357 changes: 0 additions & 357 deletions mypy/moduleinfo.py

This file was deleted.

12 changes: 0 additions & 12 deletions mypy/test/testmoduleinfo.py

This file was deleted.

Loading

0 comments on commit a540a1a

Please sign in to comment.