Skip to content

Commit 1b7b77b

Browse files
committed
Fix compile error on older python
1 parent 3fcbe46 commit 1b7b77b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypyc/test-data/run-classes.test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3484,7 +3484,6 @@ def test_interpreted_subclass() -> None:
34843484

34853485
[file m.py]
34863486
from __future__ import annotations
3487-
from typing import Self
34883487

34893488
def interpreted_subclass(base) -> None:
34903489
b = base(42)
@@ -3493,7 +3492,7 @@ def interpreted_subclass(base) -> None:
34933492
assert b.init_val == 42
34943493

34953494
class InterpretedSub(base):
3496-
def __new__(cls, val: int) -> Self:
3495+
def __new__(cls, val: int) -> base:
34973496
return super().__new__(cls, val + 1)
34983497

34993498
def __init__(self, val: int) -> None:

0 commit comments

Comments
 (0)