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
Pyrefly is ok with pass in both locations but rejects ... in both locations.
I think writing pass should be ok if used with protocols, abstract methods, .pyi, etc. On the other hand, I also think using ... should be an error outside of these abstract contexts. Other type checkers do that e.g. both ty and mypy would be ok with the protocol methods above but would flag the two functions after.
Describe the Bug
It seems that Pyrefly is permissive when using
...in functions or methods and totally rejectpasse.g. in the following:Pyrefly is ok with
passin both locations but rejects...in both locations.I think writing
passshould be ok if used with protocols, abstract methods,.pyi, etc. On the other hand, I also think using...should be an error outside of these abstract contexts. Other type checkers do that e.g. both ty and mypy would be ok with the protocol methods above but would flag the two functions after.Sandbox Link
https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeS4ATrgLYAEALqcROgOZ0Q3G6UN0AFag1wBjXFAA66aaKio4cOgEEAFENwjxUAJSJpdOphhg6AfTNhcuC6rgwoYHXQC0APk7oG%2B9IcPEFOAMjE3MzbFRKW3tHZ3dPb2DDQhTpaWNTK1xVOI9WRN8-AMU0rFCIyhzXPK8fPzoUwhAAGhAyShMoUkIRGigKAGJBUg6wLro0LDx8OnF0SDYAV0pUBghcdEJpIYBlGBg6AAsGBmI4RAB6C-bO7t42C5h0C8wxOAu5heXV9ee6K0odFQADdUNBUNhYLMNl8VmsNnRcMR4eg4Ft0GQGIcNi5gTBKHBfnQALx0SQgADMhAAjAAmcnSEAAX1aqFEazxADFoDAKJMcAQSOQmUA
(Only applicable for extension issues) IDE Information
No response