|
1 | 1 | # Stubs for _operator (Python 3.5)
|
2 |
| -# |
3 |
| -# NOTE: This dynamically typed stub was automatically generated by stubgen. |
4 | 2 |
|
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): ... |
| 3 | +import sys |
| 4 | +from typing import AnyStr |
57 | 5 |
|
58 |
| -class attrgetter: |
59 |
| - def __init__(self, *args, **kwargs): ... |
60 |
| - def __call__(self, *args, **kwargs): ... |
61 |
| - def __reduce__(self): ... |
| 6 | +# In reality the import is the other way around, but this way we can keep the operator stub in 2and3 |
| 7 | +from operator import ( |
| 8 | + truth as truth, |
| 9 | + contains as contains, |
| 10 | + indexOf as indexOf, |
| 11 | + countOf as countOf, |
| 12 | + is_ as is_, |
| 13 | + is_not as is_not, |
| 14 | + index as index, |
| 15 | + add as add, |
| 16 | + sub as sub, |
| 17 | + mul as mul, |
| 18 | + floordiv as floordiv, |
| 19 | + truediv as truediv, |
| 20 | + mod as mod, |
| 21 | + neg as neg, |
| 22 | + pos as pos, |
| 23 | + abs as abs, |
| 24 | + inv as inv, |
| 25 | + invert as invert, |
| 26 | + lshift as lshift, |
| 27 | + rshift as rshift, |
| 28 | + not_ as not_, |
| 29 | + and_ as and_, |
| 30 | + xor as xor, |
| 31 | + or_ as or_, |
| 32 | + iadd as iadd, |
| 33 | + isub as isub, |
| 34 | + imul as imul, |
| 35 | + ifloordiv as ifloordiv, |
| 36 | + itruediv as itruediv, |
| 37 | + imod as imod, |
| 38 | + ilshift as ilshift, |
| 39 | + irshift as irshift, |
| 40 | + iand as iand, |
| 41 | + ixor as ixor, |
| 42 | + ior as ior, |
| 43 | + concat as concat, |
| 44 | + iconcat as iconcat, |
| 45 | + getitem as getitem, |
| 46 | + setitem as setitem, |
| 47 | + delitem as delitem, |
| 48 | + pow as pow, |
| 49 | + ipow as ipow, |
| 50 | + eq as eq, |
| 51 | + ne as ne, |
| 52 | + lt as lt, |
| 53 | + le as le, |
| 54 | + gt as gt, |
| 55 | + ge as ge, |
| 56 | + itemgetter as itemgetter, |
| 57 | + attrgetter as attrgetter, |
| 58 | + methodcaller as methodcaller, |
| 59 | +) |
| 60 | +if sys.version_info >= (3, 5): |
| 61 | + from operator import matmul as matmul, imatmul as imatmul |
| 62 | +if sys.version_info >= (3, 4): |
| 63 | + from operator import length_hint as length_hint |
62 | 64 |
|
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): ... |
| 65 | +def _compare_digest(a: AnyStr, b: AnyStr) -> bool: ... |
0 commit comments