mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 13:33:59 +08:00
Add ModuleNotFoundError for Python >= 3.6 (#1083)
https://github.com/python/cpython/blob/6f0eb93183519024cb360162bdd81b9faec97ba6/Objects/exceptions.c#L707 https://docs.python.org/3/library/exceptions.html#ModuleNotFoundError
This commit is contained in:
committed by
Jelle Zijlstra
parent
abb7e49089
commit
fb80dc3971
@@ -904,6 +904,8 @@ class EOFError(Exception): ...
|
||||
class FloatingPointError(ArithmeticError): ...
|
||||
class IOError(EnvironmentError): ...
|
||||
class ImportError(Exception): ...
|
||||
if sys.version_info >= (3, 6):
|
||||
class ModuleNotFoundError(ImportError): ...
|
||||
class IndexError(LookupError): ...
|
||||
class KeyError(LookupError): ...
|
||||
class MemoryError(Exception): ...
|
||||
|
||||
Reference in New Issue
Block a user