Skip to content

Commit 30370d9

Browse files
Apply suggestions from code review
Co-authored-by: Brian Schubert <[email protected]>
1 parent 852358d commit 30370d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/test-data/run-classes.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3280,7 +3280,7 @@ class Dyn: pass
32803280

32813281
[case testDunderNew]
32823282
from __future__ import annotations
3283-
from types import UnionType
3283+
from typing import Union
32843284

32853285
class Add:
32863286
l: IntLike
@@ -3305,7 +3305,7 @@ class Add:
33053305
def __add__(self, other: IntLike) -> IntLike:
33063306
return Add(self, other)
33073307

3308-
IntLike = int | Add
3308+
IntLike = Union[int, Add]
33093309

33103310
[file driver.py]
33113311
from native import Add

0 commit comments

Comments
 (0)