-
Notifications
You must be signed in to change notification settings - Fork 284
Labels
typecheckingusabilityUsability & readiness issues identified with running Pyrefly on top OSS projectsUsability & readiness issues identified with running Pyrefly on top OSS projects
Description
Describe the Bug
Minimal repro:
import collections
CustomDevice = collections.namedtuple("FakeDevice", ["type", "index"])(
"lazy-caster", 0 # pyrefly FP: Expected 1 positional argument, got 2 in function `tuple.__new__`
)Both pyright and ty have better understanding of the pattern and won't report the type error.
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
typecheckingusabilityUsability & readiness issues identified with running Pyrefly on top OSS projectsUsability & readiness issues identified with running Pyrefly on top OSS projects