add (overwrite with) mypy stubs, if available

This commit is contained in:
Matthias Kramm
2015-09-30 07:36:12 -07:00
parent 69e10b3aed
commit 337abed05a
432 changed files with 22360 additions and 776 deletions

19
stdlib/3/types.pyi Normal file
View File

@@ -0,0 +1,19 @@
# Stubs for types
# TODO this is work in progress
from typing import Any
class ModuleType:
__name__ = ... # type: str
__file__ = ... # type: str
def __init__(self, name: str, doc: Any) -> None: ...
class MethodType: ...
class BuiltinMethodType: ...
class TracebackType:
tb_frame = ... # type: Any
tb_lasti = ... # type: int
tb_lineno = ... # type: int
tb_next = ... # type: Any