mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-28 05:42:10 +08:00
Stubgen some more stdlib modules.
Copy doctest.pyi from 3 to 2.7.
This commit is contained in:
9
stdlib/2.7/doctest.pyi
Normal file
9
stdlib/2.7/doctest.pyi
Normal file
@@ -0,0 +1,9 @@
|
||||
# Stubs for doctest
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
from typing import Any, Tuple
|
||||
|
||||
# TODO arguments missing
|
||||
def testmod(m: Any = ..., name: str = ..., globs: Any = ...,
|
||||
verbose: bool = ...) -> Tuple[int, int]: ...
|
||||
45
stdlib/2.7/platform.pyi
Normal file
45
stdlib/2.7/platform.pyi
Normal file
@@ -0,0 +1,45 @@
|
||||
# Stubs for platform (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
__copyright__ = ... # type: Any
|
||||
DEV_NULL = ... # type: Any
|
||||
|
||||
def libc_ver(executable=..., lib='', version='', chunksize=2048): ...
|
||||
def linux_distribution(distname='', version='', id='', supported_dists=..., full_distribution_name=1): ...
|
||||
def dist(distname='', version='', id='', supported_dists=...): ...
|
||||
|
||||
class _popen:
|
||||
tmpfile = ... # type: Any
|
||||
pipe = ... # type: Any
|
||||
bufsize = ... # type: Any
|
||||
mode = ... # type: Any
|
||||
def __init__(self, cmd, mode='', bufsize=None): ...
|
||||
def read(self): ...
|
||||
def readlines(self): ...
|
||||
def close(self, remove=..., error=...): ...
|
||||
__del__ = ... # type: Any
|
||||
|
||||
def popen(cmd, mode='', bufsize=None): ...
|
||||
def win32_ver(release='', version='', csd='', ptype=''): ...
|
||||
def mac_ver(release='', versioninfo=..., machine=''): ...
|
||||
def java_ver(release='', vendor='', vminfo=..., osinfo=...): ...
|
||||
def system_alias(system, release, version): ...
|
||||
def architecture(executable=..., bits='', linkage=''): ...
|
||||
def uname(): ...
|
||||
def system(): ...
|
||||
def node(): ...
|
||||
def release(): ...
|
||||
def version(): ...
|
||||
def machine(): ...
|
||||
def processor(): ...
|
||||
def python_implementation(): ...
|
||||
def python_version(): ...
|
||||
def python_version_tuple(): ...
|
||||
def python_branch(): ...
|
||||
def python_revision(): ...
|
||||
def python_build(): ...
|
||||
def python_compiler(): ...
|
||||
def platform(aliased=0, terse=0): ...
|
||||
Reference in New Issue
Block a user