-
Notifications
You must be signed in to change notification settings - Fork 283
Closed
Labels
typecheckingusabilityUsability & readiness issues identified with running Pyrefly on top OSS projectsUsability & readiness issues identified with running Pyrefly on top OSS projects
Description
Describe the Bug
Minimal repro:
from enum import Enum
class SeFileType(Enum):
ALL = ("a", "all files")
REGULAR = ("f", "regular file")
DIRECTORY = ("d", "directory")
def __new__(cls, code: str, description: str) -> "SeFileType":
obj = object.__new__(cls)
obj._value_ = code
return obj
@classmethod
def from_code(cls, code: str) -> "SeFileType":
# FP: pyrefly reports missing argument 'description'
return cls(code)Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
typecheckingusabilityUsability & readiness issues identified with running Pyrefly on top OSS projectsUsability & readiness issues identified with running Pyrefly on top OSS projects