File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
astroid/nodes/scoped_nodes Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1950,6 +1950,7 @@ def my_meth(self, arg):
1950
1950
"""
1951
1951
1952
1952
_type = None
1953
+ _metaclass : NodeNG | None = None
1953
1954
_metaclass_hack = False
1954
1955
hide = False
1955
1956
type = property (
@@ -2091,7 +2092,7 @@ def postinit(
2091
2092
body ,
2092
2093
decorators ,
2093
2094
newstyle = None ,
2094
- metaclass = None ,
2095
+ metaclass : NodeNG | None = None ,
2095
2096
keywords = None ,
2096
2097
* ,
2097
2098
position : Position | None = None ,
@@ -2112,7 +2113,6 @@ def postinit(
2112
2113
:type newstyle: bool or None
2113
2114
2114
2115
:param metaclass: The metaclass of this class.
2115
- :type metaclass: NodeNG or None
2116
2116
2117
2117
:param keywords: The keywords given to the class definition.
2118
2118
:type keywords: list(Keyword) or None
@@ -2810,8 +2810,6 @@ def implicit_metaclass(self):
2810
2810
return builtin_lookup ("type" )[1 ][0 ]
2811
2811
return None
2812
2812
2813
- _metaclass = None
2814
-
2815
2813
def declared_metaclass (self , context = None ):
2816
2814
"""Return the explicit declared metaclass for the current class.
2817
2815
You can’t perform that action at this time.
0 commit comments