@@ -3282,7 +3282,7 @@ class Dyn: pass
32823282from __future__ import annotations
32833283from typing import Any, Union
32843284
3285- from testutil import assertRaises
3285+ from testutil import assertRaises
32863286
32873287class Add:
32883288 l: IntLike
@@ -3306,7 +3306,7 @@ class RaisesException:
33063306 if val == 0:
33073307 raise RuntimeError("Invalid value!")
33083308 return super().__new__(cls)
3309-
3309+
33103310 def __init__(self, val: int) -> None:
33113311 self.val = val
33123312
@@ -3328,7 +3328,7 @@ def test_dunder_new() -> None:
33283328
33293329 with assertRaises(RuntimeError, "Invalid value!"):
33303330 raised = RaisesException(0)
3331-
3331+
33323332 not_raised = RaisesException(1)
33333333 assert not_raised.val == 1
33343334
@@ -3364,7 +3364,7 @@ class RaisesException:
33643364 if val == 0:
33653365 raise RuntimeError("Invalid value!")
33663366 return super().__new__(cls)
3367-
3367+
33683368 def __init__(self, val: int) -> None:
33693369 self.val = val
33703370
@@ -3379,7 +3379,7 @@ print(f'{Add(1, 0)=}')
33793379
33803380with assertRaises(RuntimeError, "Invalid value!"):
33813381 raised = RaisesException(0)
3382-
3382+
33833383not_raised = RaisesException(1)
33843384assert not_raised.val == 1
33853385
@@ -3495,7 +3495,7 @@ def interpreted_subclass(base) -> None:
34953495 class InterpretedSub(base):
34963496 def __new__(cls, val: int) -> Self:
34973497 return super().__new__(cls, val + 1)
3498-
3498+
34993499 def __init__(self, val: int) -> None:
35003500 super().__init__(val)
35013501 self.init_val : int = self.init_val * 2
@@ -3509,7 +3509,7 @@ def interpreted_subclass(base) -> None:
35093509 def __init__(self, val: int) -> None:
35103510 super().__init__(val)
35113511 self.init_val : int = self.init_val * 2
3512-
3512+
35133513 s2 = InterpretedSubWithoutNew(42)
35143514 assert type(s2) == InterpretedSubWithoutNew
35153515 assert s2.val == 43
0 commit comments