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
{{ message }}
Repository navigation
Pyrefly does not flag invalid return value for method annotated with Self #2304
Another case to test - we should not error if the class is final
from typing import Self, final
@final
class Shape:
def method(self) -> Self:
return Shape() # ok
@classmethod
def cls_method(cls) -> Self:
return Shape() # ok
Activity
yangdanny97 commentedon Feb 5, 2026
Another case to test - we should not error if the class is final
GrimNej commentedon Feb 13, 2026
I've been working on it!
add Self type validation test cases facebook#2304
Add github workflow for v1 issue ranking
Add github workflow for v1 issue ranking
rchen152 commentedon Jun 12, 2026
This is fixed :D