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
classServer:
def__init__(self, name: str) ->None:
Server.instance=selfServer.server_name=names=Server("main")
current: "Server"=Server.instance# FP: no class attribute `instance`label: str=Server.server_name# FP: no class attribute `server_name`
Only Pyright choose to support this though. Mypy and Ty both get confused as well. So this is low-pri.
Describe the Bug
Minimal repro:
Only Pyright choose to support this though. Mypy and Ty both get confused as well. So this is low-pri.
Sandbox Link
https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeSIAxlKnHAAQDKMATgG6uIA669f9mGGHoB9ERHQQALmIAUcGFDAAaeulQBbGInpwpLAJT0AtAD56AOVzptPfvaasOLQhL0ZKMegF5disHYOfMzsrIQKoSwi6lo%2BapowPDwMviHOslwgGqgSmQY8lACuLCww6FI6mWmsmXHVLm5SHl70AMT0AGIACjrouPTUtAyoUvoQ2IVSXgAGjc3TPDTYijp6LHVOYRHO0Ql87d29-YN09CNjE1P009usu1rTIMogk9BwJOSIIO0AqlLQ0lI9DAhXQlH%2B1jgSSwQmBuBY2Rk6EKGmWLFk%2BB0EikRjMun03F4-FKUmKvACIAsKLROmA%2BAAvpkeE8QGRSmAoKRCFJcBooBR2l1SOzOboMDgCANrJAAObFEYQayEHjtZheAAWo2IcEQAHpdWyhJzCPCZbqyrrMLhKHBdZRpRA5SwFdZdXD1qg2DklrApehZfKIbxcMQg%2B8eGQpOrrMZnHBFbxfJkAMyEACMACYmegQPTnqhwRAOB1oDAKGgsHgiGRc0A
(Only applicable for extension issues) IDE Information
No response