|
1 |
| -def not_a_method(arg1): |
2 |
| - ... |
| 1 | +def not_a_method(arg1): ... |
3 | 2 |
|
4 | 3 |
|
5 | 4 | class NoWarnings:
|
6 | 5 | def __init__(self):
|
7 |
| - def not_a_method_either(arg1): |
8 |
| - ... |
| 6 | + def not_a_method_either(arg1): ... |
9 | 7 |
|
10 |
| - def __new__(cls, *args, **kwargs): |
11 |
| - ... |
| 8 | + def __new__(cls, *args, **kwargs): ... |
12 | 9 |
|
13 |
| - def method(self, arg1, *, yeah): |
14 |
| - ... |
| 10 | + def method(self, arg1, *, yeah): ... |
15 | 11 |
|
16 |
| - async def async_method(self, arg1, *, yeah): |
17 |
| - ... |
| 12 | + async def async_method(self, arg1, *, yeah): ... |
18 | 13 |
|
19 | 14 | @classmethod
|
20 |
| - def someclassmethod(cls, arg1, with_default=None): |
21 |
| - ... |
| 15 | + def someclassmethod(cls, arg1, with_default=None): ... |
22 | 16 |
|
23 | 17 | @staticmethod
|
24 |
| - def not_a_problem(arg1): |
25 |
| - ... |
| 18 | + def not_a_problem(arg1): ... |
26 | 19 |
|
27 | 20 |
|
28 | 21 | class Warnings:
|
29 |
| - def __init__(i_am_special): |
30 |
| - ... |
| 22 | + def __init__(i_am_special): ... |
31 | 23 |
|
32 |
| - def almost_a_class_method(cls, arg1): |
33 |
| - ... |
| 24 | + def almost_a_class_method(cls, arg1): ... |
34 | 25 |
|
35 |
| - def almost_a_static_method(): |
36 |
| - ... |
| 26 | + def almost_a_static_method(): ... |
37 | 27 |
|
38 | 28 | @classmethod
|
39 |
| - def wat(self, i_like_confusing_people): |
40 |
| - ... |
| 29 | + def wat(self, i_like_confusing_people): ... |
41 | 30 |
|
42 | 31 | def i_am_strange(*args, **kwargs):
|
43 | 32 | self = args[0]
|
44 | 33 |
|
45 |
| - def defaults_anyone(self=None): |
46 |
| - ... |
| 34 | + def defaults_anyone(self=None): ... |
47 | 35 |
|
48 |
| - def invalid_kwargs_only(**kwargs): |
49 |
| - ... |
| 36 | + def invalid_kwargs_only(**kwargs): ... |
50 | 37 |
|
51 |
| - def invalid_keyword_only(*, self): |
52 |
| - ... |
| 38 | + def invalid_keyword_only(*, self): ... |
53 | 39 |
|
54 |
| - async def async_invalid_keyword_only(*, self): |
55 |
| - ... |
| 40 | + async def async_invalid_keyword_only(*, self): ... |
56 | 41 |
|
57 | 42 |
|
58 | 43 | class Meta(type):
|
59 |
| - def __init__(cls, name, bases, d): |
60 |
| - ... |
| 44 | + def __init__(cls, name, bases, d): ... |
61 | 45 |
|
62 | 46 | @classmethod
|
63 | 47 | def __prepare__(metacls, name, bases):
|
64 | 48 | return {}
|
65 | 49 |
|
66 | 50 |
|
67 | 51 | class OtherMeta(type):
|
68 |
| - def __init__(self, name, bases, d): |
69 |
| - ... |
| 52 | + def __init__(self, name, bases, d): ... |
70 | 53 |
|
71 | 54 | @classmethod
|
72 | 55 | def __prepare__(cls, name, bases):
|
73 | 56 | return {}
|
74 | 57 |
|
75 | 58 | @classmethod
|
76 |
| - def first_arg_mcs_allowed(mcs, value): |
77 |
| - ... |
| 59 | + def first_arg_mcs_allowed(mcs, value): ... |
78 | 60 |
|
79 | 61 |
|
80 | 62 | def type_factory():
|
81 | 63 | return object
|
82 | 64 |
|
83 | 65 |
|
84 | 66 | class CrazyBases(Warnings, type_factory(), metaclass=type):
|
85 |
| - def __init__(self): |
86 |
| - ... |
| 67 | + def __init__(self): ... |
87 | 68 |
|
88 | 69 |
|
89 | 70 | class RuntimeError("This is not a base"):
|
90 |
| - def __init__(self): |
91 |
| - ... |
| 71 | + def __init__(self): ... |
92 | 72 |
|
93 | 73 |
|
94 | 74 | class ImplicitClassMethods:
|
95 |
| - def __new__(cls, *args, **kwargs): |
96 |
| - ... |
| 75 | + def __new__(cls, *args, **kwargs): ... |
97 | 76 |
|
98 |
| - def __init_subclass__(cls, *args, **kwargs): |
99 |
| - ... |
| 77 | + def __init_subclass__(cls, *args, **kwargs): ... |
100 | 78 |
|
101 |
| - def __class_getitem__(cls, key): |
102 |
| - ... |
| 79 | + def __class_getitem__(cls, key): ... |
0 commit comments