-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Description
Describe the Bug
See the sandbox link: variable y is correctly determined to be y: Self@SomeClass, however variable x on return shows x: Self Returned type 'Self' is not assignable to declared return type 'Self@SomeClass'
When using generics, and retrieving Self from some form of cache, pyrefly loses some context about Self and throws this Error:
TODO: bool attribute base undefined for type: Self (trying to access bool)
Sorry, Pyrefly encountered an internal error, this is always a bug in Pyrefly itself
Please report the bug at https://github.com/facebook/pyrefly/issues/new
Pyreflyinternal-error`
version: Pyrefly 0.50.0
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels