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
This should type check just fine since specialising T to int in the call to f is compatible with both arguments. However, pyrefly does not like this code and complains:
ERROR 3:11-13: Argument `Literal[42]` is not assignable to parameter `y` with type `bool` in function `f` [bad-argument-type]
My educated guess is that you're pinning the placeholder type introduced for the call to f too early.
Activity
yangdanny97 commentedon May 26, 2025
Thanks for reporting! I think this issue is being tracked by #105