You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
populate display name when untyping a type alias (facebook#1641)
Summary:
Pull Request resolved: facebook#1641
- populate display name when untyping a union
- keep name when simplifying
- display the expanded type when the top level type being printed is the alias (only use the display name for nested types)
Differential Revision: D87558543
Copy file name to clipboardExpand all lines: pyrefly/lib/test/class_overrides.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -577,7 +577,7 @@ class A:
577
577
def f(self, x: TA1):
578
578
pass
579
579
class B(A):
580
-
def f(self, x: TA2): # E: `B.f` has type `BoundMethod[B, (self: B, x: float | int) -> None]`, which is not assignable to `BoundMethod[B, (self: B, x: float | int | None) -> None]`, the type of `A.f`
580
+
def f(self, x: TA2): # E: `B.f` has type `BoundMethod[B, (self: B, x: TA2) -> None]`, which is not assignable to `BoundMethod[B, (self: B, x: TA1) -> None]`, the type of `A.f`
0 commit comments