@@ -990,7 +990,7 @@ def __init__(self, lineno=None, col_offset=None, parent=None):
990
990
:type: list(NodeNG)
991
991
"""
992
992
993
- super (_BaseContainer , self ).__init__ (lineno , col_offset , parent )
993
+ super ().__init__ (lineno , col_offset , parent )
994
994
995
995
def postinit (self , elts ):
996
996
"""Do some setup after initialisation.
@@ -1286,7 +1286,7 @@ def __init__(self, name=None, lineno=None, col_offset=None, parent=None):
1286
1286
:type: str or None
1287
1287
"""
1288
1288
1289
- super (AssignName , self ).__init__ (lineno , col_offset , parent )
1289
+ super ().__init__ (lineno , col_offset , parent )
1290
1290
1291
1291
1292
1292
class DelName (
@@ -1326,7 +1326,7 @@ def __init__(self, name=None, lineno=None, col_offset=None, parent=None):
1326
1326
:type: str or None
1327
1327
"""
1328
1328
1329
- super (DelName , self ).__init__ (lineno , col_offset , parent )
1329
+ super ().__init__ (lineno , col_offset , parent )
1330
1330
1331
1331
1332
1332
class Name (mixins .NoChildrenMixin , LookupMixIn , NodeNG ):
@@ -1367,7 +1367,7 @@ def __init__(self, name=None, lineno=None, col_offset=None, parent=None):
1367
1367
:type: str or None
1368
1368
"""
1369
1369
1370
- super (Name , self ).__init__ (lineno , col_offset , parent )
1370
+ super ().__init__ (lineno , col_offset , parent )
1371
1371
1372
1372
def _get_name_nodes (self ):
1373
1373
yield self
@@ -1439,7 +1439,7 @@ def __init__(self, vararg=None, kwarg=None, parent=None):
1439
1439
:param parent: The parent node in the syntax tree.
1440
1440
:type parent: NodeNG or None
1441
1441
"""
1442
- super (Arguments , self ).__init__ (parent = parent )
1442
+ super ().__init__ (parent = parent )
1443
1443
self .vararg = vararg
1444
1444
"""The name of the variable length arguments.
1445
1445
@@ -1626,7 +1626,7 @@ def fromlineno(self):
1626
1626
1627
1627
:type: int or None
1628
1628
"""
1629
- lineno = super (Arguments , self ).fromlineno
1629
+ lineno = super ().fromlineno
1630
1630
return max (lineno , self .parent .fromlineno or 0 )
1631
1631
1632
1632
@decorators .cachedproperty
@@ -1846,7 +1846,7 @@ def __init__(self, attrname=None, lineno=None, col_offset=None, parent=None):
1846
1846
:type: str or None
1847
1847
"""
1848
1848
1849
- super (AssignAttr , self ).__init__ (lineno , col_offset , parent )
1849
+ super ().__init__ (lineno , col_offset , parent )
1850
1850
1851
1851
def postinit (self , expr = None ):
1852
1852
"""Do some setup after initialisation.
@@ -2065,7 +2065,7 @@ def __init__(self, op=None, lineno=None, col_offset=None, parent=None):
2065
2065
:type: str or None
2066
2066
"""
2067
2067
2068
- super (AugAssign , self ).__init__ (lineno , col_offset , parent )
2068
+ super ().__init__ (lineno , col_offset , parent )
2069
2069
2070
2070
def postinit (self , target = None , value = None ):
2071
2071
"""Do some setup after initialisation.
@@ -2178,7 +2178,7 @@ def __init__(self, op=None, lineno=None, col_offset=None, parent=None):
2178
2178
:type: str or None
2179
2179
"""
2180
2180
2181
- super (BinOp , self ).__init__ (lineno , col_offset , parent )
2181
+ super ().__init__ (lineno , col_offset , parent )
2182
2182
2183
2183
def postinit (self , left = None , right = None ):
2184
2184
"""Do some setup after initialisation.
@@ -2266,7 +2266,7 @@ def __init__(self, op=None, lineno=None, col_offset=None, parent=None):
2266
2266
:type: str or None
2267
2267
"""
2268
2268
2269
- super (BoolOp , self ).__init__ (lineno , col_offset , parent )
2269
+ super ().__init__ (lineno , col_offset , parent )
2270
2270
2271
2271
def postinit (self , values = None ):
2272
2272
"""Do some setup after initialisation.
@@ -2464,7 +2464,7 @@ def __init__(self, parent=None):
2464
2464
:param parent: The parent node in the syntax tree.
2465
2465
:type parent: NodeNG or None
2466
2466
"""
2467
- super (Comprehension , self ).__init__ ()
2467
+ super ().__init__ ()
2468
2468
self .parent = parent
2469
2469
2470
2470
# pylint: disable=redefined-builtin; same name as builtin ast module.
@@ -2561,7 +2561,7 @@ def __init__(self, value, lineno=None, col_offset=None, parent=None):
2561
2561
:type: object
2562
2562
"""
2563
2563
2564
- super (Const , self ).__init__ (lineno , col_offset , parent )
2564
+ super ().__init__ (lineno , col_offset , parent )
2565
2565
2566
2566
def __getattr__ (self , name ):
2567
2567
# This is needed because of Proxy's __getattr__ method.
@@ -2742,7 +2742,7 @@ def __init__(self, attrname=None, lineno=None, col_offset=None, parent=None):
2742
2742
:type: str or None
2743
2743
"""
2744
2744
2745
- super (DelAttr , self ).__init__ (lineno , col_offset , parent )
2745
+ super ().__init__ (lineno , col_offset , parent )
2746
2746
2747
2747
def postinit (self , expr = None ):
2748
2748
"""Do some setup after initialisation.
@@ -2815,7 +2815,7 @@ def __init__(self, lineno=None, col_offset=None, parent=None):
2815
2815
:type: list(tuple(NodeNG, NodeNG))
2816
2816
"""
2817
2817
2818
- super (Dict , self ).__init__ (lineno , col_offset , parent )
2818
+ super ().__init__ (lineno , col_offset , parent )
2819
2819
2820
2820
def postinit (self , items ):
2821
2821
"""Do some setup after initialisation.
@@ -3347,7 +3347,7 @@ def __init__(
3347
3347
:type: int
3348
3348
"""
3349
3349
3350
- super (ImportFrom , self ).__init__ (lineno , col_offset , parent )
3350
+ super ().__init__ (lineno , col_offset , parent )
3351
3351
3352
3352
3353
3353
class Attribute (NodeNG ):
@@ -3382,7 +3382,7 @@ def __init__(self, attrname=None, lineno=None, col_offset=None, parent=None):
3382
3382
:type: str or None
3383
3383
"""
3384
3384
3385
- super (Attribute , self ).__init__ (lineno , col_offset , parent )
3385
+ super ().__init__ (lineno , col_offset , parent )
3386
3386
3387
3387
def postinit (self , expr = None ):
3388
3388
"""Do some setup after initialisation.
@@ -3427,7 +3427,7 @@ def __init__(self, names, lineno=None, col_offset=None, parent=None):
3427
3427
:type: list(str)
3428
3428
"""
3429
3429
3430
- super (Global , self ).__init__ (lineno , col_offset , parent )
3430
+ super ().__init__ (lineno , col_offset , parent )
3431
3431
3432
3432
def _infer_name (self , frame , name ):
3433
3433
return name
@@ -3595,7 +3595,7 @@ def __init__(self, names=None, lineno=None, col_offset=None, parent=None):
3595
3595
:type: list(tuple(str, str or None)) or None
3596
3596
"""
3597
3597
3598
- super (Import , self ).__init__ (lineno , col_offset , parent )
3598
+ super ().__init__ (lineno , col_offset , parent )
3599
3599
3600
3600
3601
3601
class Index (NodeNG ):
@@ -3668,7 +3668,7 @@ def __init__(self, arg=None, lineno=None, col_offset=None, parent=None):
3668
3668
:type: Name or None
3669
3669
"""
3670
3670
3671
- super (Keyword , self ).__init__ (lineno , col_offset , parent )
3671
+ super ().__init__ (lineno , col_offset , parent )
3672
3672
3673
3673
def postinit (self , value = None ):
3674
3674
"""Do some setup after initialisation.
@@ -3713,7 +3713,7 @@ def __init__(self, ctx=None, lineno=None, col_offset=None, parent=None):
3713
3713
:type: Context or None
3714
3714
"""
3715
3715
3716
- super (List , self ).__init__ (lineno , col_offset , parent )
3716
+ super ().__init__ (lineno , col_offset , parent )
3717
3717
3718
3718
def pytype (self ):
3719
3719
"""Get the name of the type that this node represents.
@@ -3768,7 +3768,7 @@ def __init__(self, names, lineno=None, col_offset=None, parent=None):
3768
3768
:type: list(str)
3769
3769
"""
3770
3770
3771
- super (Nonlocal , self ).__init__ (lineno , col_offset , parent )
3771
+ super ().__init__ (lineno , col_offset , parent )
3772
3772
3773
3773
def _infer_name (self , frame , name ):
3774
3774
return name
@@ -3824,7 +3824,7 @@ def __init__(self, nl=None, lineno=None, col_offset=None, parent=None):
3824
3824
:type: bool or None
3825
3825
"""
3826
3826
3827
- super (Print , self ).__init__ (lineno , col_offset , parent )
3827
+ super ().__init__ (lineno , col_offset , parent )
3828
3828
3829
3829
def postinit (self , dest = None , values = None ):
3830
3830
"""Do some setup after initialisation.
@@ -4077,9 +4077,7 @@ def __init__(self, ctx=None, lineno=None, col_offset=None, parent=None):
4077
4077
:type: Context or None
4078
4078
"""
4079
4079
4080
- super (Starred , self ).__init__ (
4081
- lineno = lineno , col_offset = col_offset , parent = parent
4082
- )
4080
+ super ().__init__ (lineno = lineno , col_offset = col_offset , parent = parent )
4083
4081
4084
4082
def postinit (self , value = None ):
4085
4083
"""Do some setup after initialisation.
@@ -4135,9 +4133,7 @@ def __init__(self, ctx=None, lineno=None, col_offset=None, parent=None):
4135
4133
:type: Context or None
4136
4134
"""
4137
4135
4138
- super (Subscript , self ).__init__ (
4139
- lineno = lineno , col_offset = col_offset , parent = parent
4140
- )
4136
+ super ().__init__ (lineno = lineno , col_offset = col_offset , parent = parent )
4141
4137
4142
4138
# pylint: disable=redefined-builtin; had to use the same name as builtin ast module.
4143
4139
def postinit (self , value = None , slice = None ):
@@ -4330,7 +4326,7 @@ def __init__(self, ctx=None, lineno=None, col_offset=None, parent=None):
4330
4326
:type: Context or None
4331
4327
"""
4332
4328
4333
- super (Tuple , self ).__init__ (lineno , col_offset , parent )
4329
+ super ().__init__ (lineno , col_offset , parent )
4334
4330
4335
4331
def pytype (self ):
4336
4332
"""Get the name of the type that this node represents.
@@ -4386,7 +4382,7 @@ def __init__(self, op=None, lineno=None, col_offset=None, parent=None):
4386
4382
:type: str or None
4387
4383
"""
4388
4384
4389
- super (UnaryOp , self ).__init__ (lineno , col_offset , parent )
4385
+ super ().__init__ (lineno , col_offset , parent )
4390
4386
4391
4387
def postinit (self , operand = None ):
4392
4388
"""Do some setup after initialisation.
@@ -4773,7 +4769,7 @@ class EvaluatedObject(NodeNG):
4773
4769
def __init__ (self , original , value ):
4774
4770
self .original = original
4775
4771
self .value = value
4776
- super (EvaluatedObject , self ).__init__ (
4772
+ super ().__init__ (
4777
4773
lineno = self .original .lineno ,
4778
4774
col_offset = self .original .col_offset ,
4779
4775
parent = self .original .parent ,
0 commit comments