66# Partially adapted to Python 2.7 by Jukka Lehtosalo.
77
88from typing import (
9- Undefined , List , Sequence , Any , Dict , Tuple , BinaryIO , overload
9+ List , Sequence , Any , Dict , Tuple , BinaryIO , overload
1010)
1111
1212# ----- sys variables -----
1313abiflags = ''
14- argv = Undefined ( List [str ])
14+ argv = None # type: List[str]
1515byteorder = ''
16- builtin_module_names = Undefined ( Sequence [str ]) # actually a tuple of strings
16+ builtin_module_names = None # type: Sequence[str] # actually a tuple of strings
1717copyright = ''
1818#dllhandle = 0 # Windows only
1919dont_write_bytecode = False
20- __displayhook__ = Undefined ( Any ) # contains the original value of displayhook
21- __excepthook__ = Undefined ( Any ) # contains the original value of excepthook
20+ __displayhook__ = None # type: Any # contains the original value of displayhook
21+ __excepthook__ = None # type: Any # contains the original value of excepthook
2222exec_prefix = ''
2323executable = ''
2424float_repr_style = ''
2525hexversion = 0 # this is a 32-bit int
26- last_type = Undefined ( Any )
27- last_value = Undefined ( Any )
28- last_traceback = Undefined ( Any )
26+ last_type = None # type: Any
27+ last_value = None # type: Any
28+ last_traceback = None # type: Any
2929maxsize = 0
3030maxunicode = 0
31- meta_path = Undefined ( List [Any ])
32- modules = Undefined ( Dict [str , Any ])
33- path = Undefined ( List [str ])
34- path_hooks = Undefined ( List [Any ]) # TODO precise type; function, path to finder
35- path_importer_cache = Undefined ( Dict [str , Any ]) # TODO precise type
31+ meta_path = None # type: List[Any]
32+ modules = None # type: Dict[str, Any]
33+ path = None # type: List[str]
34+ path_hooks = None # type: List[Any] # TODO precise type; function, path to finder
35+ path_importer_cache = None # type: Dict[str, Any] # TODO precise type
3636platform = ''
3737prefix = ''
3838ps1 = ''
3939ps2 = ''
40- stdin = Undefined ( BinaryIO )
41- stdout = Undefined ( BinaryIO )
42- stderr = Undefined ( BinaryIO )
43- __stdin__ = Undefined ( BinaryIO )
44- __stdout__ = Undefined ( BinaryIO )
45- __stderr__ = Undefined ( BinaryIO )
46- subversion = Undefined ( Tuple [str , str , str ])
40+ stdin = None # type: BinaryIO
41+ stdout = None # type: BinaryIO
42+ stderr = None # type: BinaryIO
43+ __stdin__ = None # type: BinaryIO
44+ __stdout__ = None # type: BinaryIO
45+ __stderr__ = None # type: BinaryIO
46+ subversion = None # type: Tuple[str, str, str]
4747tracebacklimit = 0
4848version = ''
4949api_version = 0
50- warnoptions = Undefined ( Any )
50+ warnoptions = None # type: Any
5151# Each entry is a tuple of the form (action, message, category, module,
5252# lineno)
5353#winver = '' # Windows only
54- _xoptions = Undefined ( Dict [Any , Any ])
54+ _xoptions = None # type: Dict[Any, Any]
5555
56- flags = Undefined ( _flags )
56+ flags = None # type: _flags
5757class _flags :
5858 debug = 0
5959 division_warning = 0
@@ -69,7 +69,7 @@ class _flags:
6969 quiet = 0
7070 hash_randomization = 0
7171
72- float_info = Undefined ( _float_info )
72+ float_info = None # type: _float_info
7373class _float_info :
7474 epsilon = 0.0 # DBL_EPSILON
7575 dig = 0 # DBL_DIG
@@ -83,22 +83,22 @@ class _float_info:
8383 radix = 0 # FLT_RADIX
8484 rounds = 0 # FLT_ROUNDS
8585
86- hash_info = Undefined ( _hash_info )
86+ hash_info = None # type: _hash_info
8787class _hash_info :
8888 width = 0 # width in bits used for hash values
8989 modulus = 0 # prime modulus P used for numeric hash scheme
9090 inf = 0 # hash value returned for a positive infinity
9191 nan = 0 # hash value returned for a nan
9292 imag = 0 # multiplier used for the imaginary part of a complex number
9393
94- int_info = Undefined ( _int_info )
94+ int_info = None # type: _int_info
9595class _int_info :
9696 bits_per_digit = 0 # number of bits held in each digit. Python integers
9797 # are stored internally in
9898 # base 2**int_info.bits_per_digit
9999 sizeof_digit = 0 # size in bytes of C type used to represent a digit
100100
101- version_info = Undefined ( _version_info )
101+ version_info = None # type: _version_info
102102class _version_info :
103103 major = 0
104104 minor = 0
0 commit comments