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