@@ -2661,12 +2661,6 @@ def __init__(
26612661 self .orelse : typing .List [NodeNG ] = []
26622662 """The contents of the ``else`` block of the loop."""
26632663
2664- self .orelse_lineno : Optional [int ] = None
2665- """The line number of the ``else`` keyword."""
2666-
2667- self .orelse_col_offset : Optional [int ] = None
2668- """The column offset of the ``else`` keyword."""
2669-
26702664 self .type_annotation : Optional [NodeNG ] = None # can be None
26712665 """If present, this will contain the type annotation passed by a type comment"""
26722666
@@ -2686,9 +2680,6 @@ def postinit(
26862680 body : Optional [typing .List [NodeNG ]] = None ,
26872681 orelse : Optional [typing .List [NodeNG ]] = None ,
26882682 type_annotation : Optional [NodeNG ] = None ,
2689- * ,
2690- orelse_lineno : Optional [int ] = None ,
2691- orelse_col_offset : Optional [int ] = None ,
26922683 ) -> None :
26932684 """Do some setup after initialisation.
26942685
@@ -2699,19 +2690,13 @@ def postinit(
26992690 :param body: The contents of the body of the loop.
27002691
27012692 :param orelse: The contents of the ``else`` block of the loop.
2702-
2703- :param orelse_lineno: The line number of the ``else`` keyword.
2704-
2705- :param orelse_lineno: The column offset of the ``else`` keyword.
27062693 """
27072694 self .target = target
27082695 self .iter = iter
27092696 if body is not None :
27102697 self .body = body
27112698 if orelse is not None :
27122699 self .orelse = orelse
2713- self .orelse_lineno = orelse_lineno
2714- self .orelse_col_offset = orelse_col_offset
27152700 self .type_annotation = type_annotation
27162701
27172702 assigned_stmts : ClassVar [AssignedStmtsCall ["For" ]]
@@ -3048,12 +3033,6 @@ def __init__(
30483033 self .is_orelse : bool = False
30493034 """Whether the if-statement is the orelse-block of another if statement."""
30503035
3051- self .orelse_lineno : Optional [int ] = None
3052- """The line number of the ``else`` or ``elif`` keyword."""
3053-
3054- self .orelse_col_offset : Optional [int ] = None
3055- """The column offset of the ``else`` or ``elif`` keyword."""
3056-
30573036 super ().__init__ (
30583037 lineno = lineno ,
30593038 col_offset = col_offset ,
@@ -3067,9 +3046,6 @@ def postinit(
30673046 test : Optional [NodeNG ] = None ,
30683047 body : Optional [typing .List [NodeNG ]] = None ,
30693048 orelse : Optional [typing .List [NodeNG ]] = None ,
3070- * ,
3071- orelse_lineno : Optional [int ] = None ,
3072- orelse_col_offset : Optional [int ] = None ,
30733049 ) -> None :
30743050 """Do some setup after initialisation.
30753051
@@ -3078,10 +3054,6 @@ def postinit(
30783054 :param body: The contents of the block.
30793055
30803056 :param orelse: The contents of the ``else`` block.
3081-
3082- :param orelse_lineno: The line number of the ``else`` or ``elif`` keyword.
3083-
3084- :param orelse_lineno: The column offset of the ``else`` or ``elif`` keyword.
30853057 """
30863058 self .test = test
30873059 if body is not None :
@@ -3090,8 +3062,6 @@ def postinit(
30903062 self .orelse = orelse
30913063 if isinstance (self .parent , If ) and self in self .parent .orelse :
30923064 self .is_orelse = True
3093- self .orelse_lineno = orelse_lineno
3094- self .orelse_col_offset = orelse_col_offset
30953065
30963066 @cached_property
30973067 def blockstart_tolineno (self ):
@@ -3994,12 +3964,6 @@ def __init__(
39943964 self .orelse : typing .List [NodeNG ] = []
39953965 """The contents of the ``else`` block."""
39963966
3997- self .orelse_lineno : Optional [int ] = None
3998- """The line number of the ``else`` keyword."""
3999-
4000- self .orelse_col_offset : Optional [int ] = None
4001- """The column offset of the ``else`` keyword."""
4002-
40033967 super ().__init__ (
40043968 lineno = lineno ,
40053969 col_offset = col_offset ,
@@ -4013,9 +3977,6 @@ def postinit(
40133977 body : Optional [typing .List [NodeNG ]] = None ,
40143978 handlers : Optional [typing .List [ExceptHandler ]] = None ,
40153979 orelse : Optional [typing .List [NodeNG ]] = None ,
4016- * ,
4017- orelse_lineno : Optional [int ] = None ,
4018- orelse_col_offset : Optional [int ] = None ,
40193980 ) -> None :
40203981 """Do some setup after initialisation.
40213982
@@ -4024,19 +3985,13 @@ def postinit(
40243985 :param handlers: The exception handlers.
40253986
40263987 :param orelse: The contents of the ``else`` block.
4027-
4028- :param orelse_lineno: The line number of the ``else`` keyword.
4029-
4030- :param orelse_lineno: The column offset of the ``else`` keyword.
40313988 """
40323989 if body is not None :
40333990 self .body = body
40343991 if handlers is not None :
40353992 self .handlers = handlers
40363993 if orelse is not None :
40373994 self .orelse = orelse
4038- self .orelse_lineno = orelse_lineno
4039- self .orelse_col_offset = orelse_col_offset
40403995
40413996 def _infer_name (self , frame , name ):
40423997 return name
@@ -4371,12 +4326,6 @@ def __init__(
43714326 self .orelse : typing .List [NodeNG ] = []
43724327 """The contents of the ``else`` block."""
43734328
4374- self .orelse_lineno : Optional [int ] = None
4375- """The line number of the ``else`` keyword."""
4376-
4377- self .orelse_col_offset : Optional [int ] = None
4378- """The column offset of the ``else`` keyword."""
4379-
43804329 super ().__init__ (
43814330 lineno = lineno ,
43824331 col_offset = col_offset ,
@@ -4390,9 +4339,6 @@ def postinit(
43904339 test : Optional [NodeNG ] = None ,
43914340 body : Optional [typing .List [NodeNG ]] = None ,
43924341 orelse : Optional [typing .List [NodeNG ]] = None ,
4393- * ,
4394- orelse_lineno : Optional [int ] = None ,
4395- orelse_col_offset : Optional [int ] = None ,
43964342 ) -> None :
43974343 """Do some setup after initialisation.
43984344
@@ -4401,18 +4347,12 @@ def postinit(
44014347 :param body: The contents of the loop.
44024348
44034349 :param orelse: The contents of the ``else`` block.
4404-
4405- :param orelse_lineno: The line number of the ``else`` keyword.
4406-
4407- :param orelse_lineno: The column offset of the ``else`` keyword.
44084350 """
44094351 self .test = test
44104352 if body is not None :
44114353 self .body = body
44124354 if orelse is not None :
44134355 self .orelse = orelse
4414- self .orelse_lineno = orelse_lineno
4415- self .orelse_col_offset = orelse_col_offset
44164356
44174357 @cached_property
44184358 def blockstart_tolineno (self ):
0 commit comments