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
Enum.value explicit Any fallback is reported as unknown-attribute-access #5281
The bundled typeshed declares Enum.value -> Any explicitly (1.4.0 stub). Reading it through the base Enum produces unknown-attribute-access, even when assigning it to object. The error-kind documentation says explicit Any accesses are intentional and not reported. I expected the explicit stub fallback to retain that distinction; I am not asking Pyrefly to infer a concrete payload from a bare Enum.
Reproduced with Pyrefly 1.4.0 and CPython 3.14.8 on macOS. Pyrefly 1.3.2 accepts this example with the same configuration. Mypy 2.4.0 (strict, without project plugins) and Pyright 1.1.414 also accept it.
Activity