Skip to content

Commit c7cdced

Browse files
committed
Merge pull request #141 from bdarnell/updates
Various updates to stdlib modules
2 parents 8c59f8f + 54e4f51 commit c7cdced

21 files changed

+825
-3
lines changed

stdlib/3/__future__.pyi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
class _Feature: ...
1+
from sys import _version_info
2+
3+
class _Feature:
4+
def getOptionalRelease(self) -> _version_info: ...
5+
def getMandatoryRelease(self) -> _version_info: ...
26

37
absolute_import = ... # type: _Feature
48
division = ... # type: _Feature

stdlib/3/_compression.pyi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Stubs for _compression (Python 3.5)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any
6+
import io
7+
8+
BUFFER_SIZE = ... # type: Any
9+
10+
class BaseStream(io.BufferedIOBase): ...
11+
12+
class DecompressReader(io.RawIOBase):
13+
def readable(self): ...
14+
def __init__(self, fp, decomp_factory, trailing_error=..., **decomp_args): ...
15+
def close(self): ...
16+
def seekable(self): ...
17+
def readinto(self, b): ...
18+
def read(self, size=-1): ...
19+
def seek(self, offset, whence=...): ...
20+
def tell(self): ...

stdlib/3/_curses.pyi

Lines changed: 295 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,295 @@
1+
# Stubs for _curses (Python 3.5)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any
6+
7+
ALL_MOUSE_EVENTS = ... # type: int
8+
A_ALTCHARSET = ... # type: int
9+
A_ATTRIBUTES = ... # type: int
10+
A_BLINK = ... # type: int
11+
A_BOLD = ... # type: int
12+
A_CHARTEXT = ... # type: int
13+
A_COLOR = ... # type: int
14+
A_DIM = ... # type: int
15+
A_HORIZONTAL = ... # type: int
16+
A_INVIS = ... # type: int
17+
A_LEFT = ... # type: int
18+
A_LOW = ... # type: int
19+
A_NORMAL = ... # type: int
20+
A_PROTECT = ... # type: int
21+
A_REVERSE = ... # type: int
22+
A_RIGHT = ... # type: int
23+
A_STANDOUT = ... # type: int
24+
A_TOP = ... # type: int
25+
A_UNDERLINE = ... # type: int
26+
A_VERTICAL = ... # type: int
27+
BUTTON1_CLICKED = ... # type: int
28+
BUTTON1_DOUBLE_CLICKED = ... # type: int
29+
BUTTON1_PRESSED = ... # type: int
30+
BUTTON1_RELEASED = ... # type: int
31+
BUTTON1_TRIPLE_CLICKED = ... # type: int
32+
BUTTON2_CLICKED = ... # type: int
33+
BUTTON2_DOUBLE_CLICKED = ... # type: int
34+
BUTTON2_PRESSED = ... # type: int
35+
BUTTON2_RELEASED = ... # type: int
36+
BUTTON2_TRIPLE_CLICKED = ... # type: int
37+
BUTTON3_CLICKED = ... # type: int
38+
BUTTON3_DOUBLE_CLICKED = ... # type: int
39+
BUTTON3_PRESSED = ... # type: int
40+
BUTTON3_RELEASED = ... # type: int
41+
BUTTON3_TRIPLE_CLICKED = ... # type: int
42+
BUTTON4_CLICKED = ... # type: int
43+
BUTTON4_DOUBLE_CLICKED = ... # type: int
44+
BUTTON4_PRESSED = ... # type: int
45+
BUTTON4_RELEASED = ... # type: int
46+
BUTTON4_TRIPLE_CLICKED = ... # type: int
47+
BUTTON_ALT = ... # type: int
48+
BUTTON_CTRL = ... # type: int
49+
BUTTON_SHIFT = ... # type: int
50+
COLOR_BLACK = ... # type: int
51+
COLOR_BLUE = ... # type: int
52+
COLOR_CYAN = ... # type: int
53+
COLOR_GREEN = ... # type: int
54+
COLOR_MAGENTA = ... # type: int
55+
COLOR_RED = ... # type: int
56+
COLOR_WHITE = ... # type: int
57+
COLOR_YELLOW = ... # type: int
58+
ERR = ... # type: int
59+
KEY_A1 = ... # type: int
60+
KEY_A3 = ... # type: int
61+
KEY_B2 = ... # type: int
62+
KEY_BACKSPACE = ... # type: int
63+
KEY_BEG = ... # type: int
64+
KEY_BREAK = ... # type: int
65+
KEY_BTAB = ... # type: int
66+
KEY_C1 = ... # type: int
67+
KEY_C3 = ... # type: int
68+
KEY_CANCEL = ... # type: int
69+
KEY_CATAB = ... # type: int
70+
KEY_CLEAR = ... # type: int
71+
KEY_CLOSE = ... # type: int
72+
KEY_COMMAND = ... # type: int
73+
KEY_COPY = ... # type: int
74+
KEY_CREATE = ... # type: int
75+
KEY_CTAB = ... # type: int
76+
KEY_DC = ... # type: int
77+
KEY_DL = ... # type: int
78+
KEY_DOWN = ... # type: int
79+
KEY_EIC = ... # type: int
80+
KEY_END = ... # type: int
81+
KEY_ENTER = ... # type: int
82+
KEY_EOL = ... # type: int
83+
KEY_EOS = ... # type: int
84+
KEY_EXIT = ... # type: int
85+
KEY_F0 = ... # type: int
86+
KEY_F1 = ... # type: int
87+
KEY_F10 = ... # type: int
88+
KEY_F11 = ... # type: int
89+
KEY_F12 = ... # type: int
90+
KEY_F13 = ... # type: int
91+
KEY_F14 = ... # type: int
92+
KEY_F15 = ... # type: int
93+
KEY_F16 = ... # type: int
94+
KEY_F17 = ... # type: int
95+
KEY_F18 = ... # type: int
96+
KEY_F19 = ... # type: int
97+
KEY_F2 = ... # type: int
98+
KEY_F20 = ... # type: int
99+
KEY_F21 = ... # type: int
100+
KEY_F22 = ... # type: int
101+
KEY_F23 = ... # type: int
102+
KEY_F24 = ... # type: int
103+
KEY_F25 = ... # type: int
104+
KEY_F26 = ... # type: int
105+
KEY_F27 = ... # type: int
106+
KEY_F28 = ... # type: int
107+
KEY_F29 = ... # type: int
108+
KEY_F3 = ... # type: int
109+
KEY_F30 = ... # type: int
110+
KEY_F31 = ... # type: int
111+
KEY_F32 = ... # type: int
112+
KEY_F33 = ... # type: int
113+
KEY_F34 = ... # type: int
114+
KEY_F35 = ... # type: int
115+
KEY_F36 = ... # type: int
116+
KEY_F37 = ... # type: int
117+
KEY_F38 = ... # type: int
118+
KEY_F39 = ... # type: int
119+
KEY_F4 = ... # type: int
120+
KEY_F40 = ... # type: int
121+
KEY_F41 = ... # type: int
122+
KEY_F42 = ... # type: int
123+
KEY_F43 = ... # type: int
124+
KEY_F44 = ... # type: int
125+
KEY_F45 = ... # type: int
126+
KEY_F46 = ... # type: int
127+
KEY_F47 = ... # type: int
128+
KEY_F48 = ... # type: int
129+
KEY_F49 = ... # type: int
130+
KEY_F5 = ... # type: int
131+
KEY_F50 = ... # type: int
132+
KEY_F51 = ... # type: int
133+
KEY_F52 = ... # type: int
134+
KEY_F53 = ... # type: int
135+
KEY_F54 = ... # type: int
136+
KEY_F55 = ... # type: int
137+
KEY_F56 = ... # type: int
138+
KEY_F57 = ... # type: int
139+
KEY_F58 = ... # type: int
140+
KEY_F59 = ... # type: int
141+
KEY_F6 = ... # type: int
142+
KEY_F60 = ... # type: int
143+
KEY_F61 = ... # type: int
144+
KEY_F62 = ... # type: int
145+
KEY_F63 = ... # type: int
146+
KEY_F7 = ... # type: int
147+
KEY_F8 = ... # type: int
148+
KEY_F9 = ... # type: int
149+
KEY_FIND = ... # type: int
150+
KEY_HELP = ... # type: int
151+
KEY_HOME = ... # type: int
152+
KEY_IC = ... # type: int
153+
KEY_IL = ... # type: int
154+
KEY_LEFT = ... # type: int
155+
KEY_LL = ... # type: int
156+
KEY_MARK = ... # type: int
157+
KEY_MAX = ... # type: int
158+
KEY_MESSAGE = ... # type: int
159+
KEY_MIN = ... # type: int
160+
KEY_MOUSE = ... # type: int
161+
KEY_MOVE = ... # type: int
162+
KEY_NEXT = ... # type: int
163+
KEY_NPAGE = ... # type: int
164+
KEY_OPEN = ... # type: int
165+
KEY_OPTIONS = ... # type: int
166+
KEY_PPAGE = ... # type: int
167+
KEY_PREVIOUS = ... # type: int
168+
KEY_PRINT = ... # type: int
169+
KEY_REDO = ... # type: int
170+
KEY_REFERENCE = ... # type: int
171+
KEY_REFRESH = ... # type: int
172+
KEY_REPLACE = ... # type: int
173+
KEY_RESET = ... # type: int
174+
KEY_RESIZE = ... # type: int
175+
KEY_RESTART = ... # type: int
176+
KEY_RESUME = ... # type: int
177+
KEY_RIGHT = ... # type: int
178+
KEY_SAVE = ... # type: int
179+
KEY_SBEG = ... # type: int
180+
KEY_SCANCEL = ... # type: int
181+
KEY_SCOMMAND = ... # type: int
182+
KEY_SCOPY = ... # type: int
183+
KEY_SCREATE = ... # type: int
184+
KEY_SDC = ... # type: int
185+
KEY_SDL = ... # type: int
186+
KEY_SELECT = ... # type: int
187+
KEY_SEND = ... # type: int
188+
KEY_SEOL = ... # type: int
189+
KEY_SEXIT = ... # type: int
190+
KEY_SF = ... # type: int
191+
KEY_SFIND = ... # type: int
192+
KEY_SHELP = ... # type: int
193+
KEY_SHOME = ... # type: int
194+
KEY_SIC = ... # type: int
195+
KEY_SLEFT = ... # type: int
196+
KEY_SMESSAGE = ... # type: int
197+
KEY_SMOVE = ... # type: int
198+
KEY_SNEXT = ... # type: int
199+
KEY_SOPTIONS = ... # type: int
200+
KEY_SPREVIOUS = ... # type: int
201+
KEY_SPRINT = ... # type: int
202+
KEY_SR = ... # type: int
203+
KEY_SREDO = ... # type: int
204+
KEY_SREPLACE = ... # type: int
205+
KEY_SRESET = ... # type: int
206+
KEY_SRIGHT = ... # type: int
207+
KEY_SRSUME = ... # type: int
208+
KEY_SSAVE = ... # type: int
209+
KEY_SSUSPEND = ... # type: int
210+
KEY_STAB = ... # type: int
211+
KEY_SUNDO = ... # type: int
212+
KEY_SUSPEND = ... # type: int
213+
KEY_UNDO = ... # type: int
214+
KEY_UP = ... # type: int
215+
OK = ... # type: int
216+
REPORT_MOUSE_POSITION = ... # type: int
217+
_C_API = ... # type: Any
218+
version = ... # type: bytes
219+
220+
def baudrate(*args, **kwargs): ...
221+
def beep(*args, **kwargs): ...
222+
def can_change_color(*args, **kwargs): ...
223+
def cbreak(*args, **kwargs): ...
224+
def color_content(*args, **kwargs): ...
225+
def color_pair(*args, **kwargs): ...
226+
def curs_set(*args, **kwargs): ...
227+
def def_prog_mode(*args, **kwargs): ...
228+
def def_shell_mode(*args, **kwargs): ...
229+
def delay_output(*args, **kwargs): ...
230+
def doupdate(*args, **kwargs): ...
231+
def echo(*args, **kwargs): ...
232+
def endwin(*args, **kwargs): ...
233+
def erasechar(*args, **kwargs): ...
234+
def filter(*args, **kwargs): ...
235+
def flash(*args, **kwargs): ...
236+
def flushinp(*args, **kwargs): ...
237+
def getmouse(*args, **kwargs): ...
238+
def getsyx(*args, **kwargs): ...
239+
def getwin(*args, **kwargs): ...
240+
def halfdelay(*args, **kwargs): ...
241+
def has_colors(*args, **kwargs): ...
242+
def has_ic(*args, **kwargs): ...
243+
def has_il(*args, **kwargs): ...
244+
def has_key(*args, **kwargs): ...
245+
def init_color(*args, **kwargs): ...
246+
def init_pair(*args, **kwargs): ...
247+
def initscr(*args, **kwargs): ...
248+
def intrflush(*args, **kwargs): ...
249+
def is_term_resized(*args, **kwargs): ...
250+
def isendwin(*args, **kwargs): ...
251+
def keyname(*args, **kwargs): ...
252+
def killchar(*args, **kwargs): ...
253+
def longname(*args, **kwargs): ...
254+
def meta(*args, **kwargs): ...
255+
def mouseinterval(*args, **kwargs): ...
256+
def mousemask(*args, **kwargs): ...
257+
def napms(*args, **kwargs): ...
258+
def newpad(*args, **kwargs): ...
259+
def newwin(*args, **kwargs): ...
260+
def nl(*args, **kwargs): ...
261+
def nocbreak(*args, **kwargs): ...
262+
def noecho(*args, **kwargs): ...
263+
def nonl(*args, **kwargs): ...
264+
def noqiflush(*args, **kwargs): ...
265+
def noraw(*args, **kwargs): ...
266+
def pair_content(*args, **kwargs): ...
267+
def pair_number(*args, **kwargs): ...
268+
def putp(*args, **kwargs): ...
269+
def qiflush(*args, **kwargs): ...
270+
def raw(*args, **kwargs): ...
271+
def reset_prog_mode(*args, **kwargs): ...
272+
def reset_shell_mode(*args, **kwargs): ...
273+
def resetty(*args, **kwargs): ...
274+
def resize_term(*args, **kwargs): ...
275+
def resizeterm(*args, **kwargs): ...
276+
def savetty(*args, **kwargs): ...
277+
def setsyx(*args, **kwargs): ...
278+
def setupterm(*args, **kwargs): ...
279+
def start_color(*args, **kwargs): ...
280+
def termattrs(*args, **kwargs): ...
281+
def termname(*args, **kwargs): ...
282+
def tigetflag(*args, **kwargs): ...
283+
def tigetnum(*args, **kwargs): ...
284+
def tigetstr(*args, **kwargs): ...
285+
def tparm(*args, **kwargs): ...
286+
def typeahead(*args, **kwargs): ...
287+
def unctrl(*args, **kwargs): ...
288+
def unget_wch(*args, **kwargs): ...
289+
def ungetch(*args, **kwargs): ...
290+
def ungetmouse(*args, **kwargs): ...
291+
def update_lines_cols(*args, **kwargs): ...
292+
def use_default_colors(*args, **kwargs): ...
293+
def use_env(*args, **kwargs): ...
294+
295+
class error(Exception): ...

stdlib/3/_operator.pyi

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Stubs for _operator (Python 3.5)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
def _compare_digest(*args, **kwargs): ...
6+
def abs(a): ...
7+
def add(a, b): ...
8+
def and_(a, b): ...
9+
def concat(a, b): ...
10+
def contains(a, b): ...
11+
def countOf(a, b): ...
12+
def delitem(a, b): ...
13+
def eq(a, b): ...
14+
def floordiv(a, b): ...
15+
def ge(a, b): ...
16+
def getitem(a, b): ...
17+
def gt(a, b): ...
18+
def iadd(*args, **kwargs): ...
19+
def iand(*args, **kwargs): ...
20+
def iconcat(*args, **kwargs): ...
21+
def ifloordiv(*args, **kwargs): ...
22+
def ilshift(*args, **kwargs): ...
23+
def imatmul(*args, **kwargs): ...
24+
def imod(*args, **kwargs): ...
25+
def imul(*args, **kwargs): ...
26+
def index(a): ...
27+
def indexOf(a, b): ...
28+
def inv(a): ...
29+
def invert(a): ...
30+
def ior(*args, **kwargs): ...
31+
def ipow(*args, **kwargs): ...
32+
def irshift(*args, **kwargs): ...
33+
def is_(a, b): ...
34+
def is_not(a, b): ...
35+
def isub(*args, **kwargs): ...
36+
def itruediv(*args, **kwargs): ...
37+
def ixor(*args, **kwargs): ...
38+
def le(a, b): ...
39+
def length_hint(obj, default=0): ...
40+
def lshift(a, b): ...
41+
def lt(a, b): ...
42+
def matmul(a, b): ...
43+
def mod(a, b): ...
44+
def mul(a, b): ...
45+
def ne(a, b): ...
46+
def neg(a): ...
47+
def not_(a): ...
48+
def or_(a, b): ...
49+
def pos(a): ...
50+
def pow(a, b): ...
51+
def rshift(a, b): ...
52+
def setitem(a, b, c): ...
53+
def sub(a, b): ...
54+
def truediv(a, b): ...
55+
def truth(a): ...
56+
def xor(a, b): ...
57+
58+
class attrgetter:
59+
def __init__(self, *args, **kwargs): ...
60+
def __call__(self, *args, **kwargs): ...
61+
def __reduce__(self): ...
62+
63+
class itemgetter:
64+
def __init__(self, *args, **kwargs): ...
65+
def __call__(self, *args, **kwargs): ...
66+
def __reduce__(self): ...
67+
68+
class methodcaller:
69+
def __init__(self, *args, **kwargs): ...
70+
def __call__(self, *args, **kwargs): ...
71+
def __reduce__(self): ...
File renamed without changes.

stdlib/3/concurrent/__init__.pyi

Whitespace-only changes.

0 commit comments

Comments
 (0)