-
Notifications
You must be signed in to change notification settings - Fork 283
Open
Bug
0 / 20 of 2 issues completed
Copy link
Labels
googleissues from googleissues from googlepytorchtypecheckingusabilityUsability & readiness issues identified with running Pyrefly on top OSS projectsUsability & readiness issues identified with running Pyrefly on top OSS projects
Milestone
Description
Minimal repro:
def foo[T](a: T, b: T) -> T:
...
def test(x: int | None, y: int | None) -> int | None:
if x is None:
return foo(x, y)
return None
Expected: No error
Actual: Argument int | None is not assignable to parameter b with type None in function foo [bad-argument-type]
Reactions are currently unavailable
Sub-issues
Metadata
Metadata
Assignees
Labels
googleissues from googleissues from googlepytorchtypecheckingusabilityUsability & readiness issues identified with running Pyrefly on top OSS projectsUsability & readiness issues identified with running Pyrefly on top OSS projects