core: drop sys.pyi from mocks (fixes #934)
A change introduced in mypy 0.770 disallows overriding some system modules, including `sys`. We only need the override for `sys.print_exception`, and the simplest solution is to make mypy ignore that particular call.pull/938/head
parent
17392f94b8
commit
eec0615444
@ -1,16 +0,0 @@
|
|||||||
from typing import *
|
|
||||||
|
|
||||||
def exit(retval: Any = ...) -> None:
|
|
||||||
raise SystemExit()
|
|
||||||
|
|
||||||
def print_exception(exc: BaseException) -> None: ...
|
|
||||||
|
|
||||||
path = ... # type: List[str]
|
|
||||||
argv = ... # type: List[str]
|
|
||||||
version = ... # type: str
|
|
||||||
version_info = ... # type: Tuple[int, int, int]
|
|
||||||
implementation = ... # type: Tuple[str, Tuple[int, int, int]]
|
|
||||||
platform = ... # type: str
|
|
||||||
byteorder = ... # type: str
|
|
||||||
maxsize = ... # type: int
|
|
||||||
modules = ... # type: Dict[str, Any]
|
|
Loading…
Reference in new issue