5 of 6 standards met
Repository: facebook/pyrefly. Description: A fast type checker and language server for Python Stars: 5414, Forks: 276. Primary language: Rust. Languages: Rust (85.6%), Python (9.1%), TypeScript (2.6%), MDX (2.4%), Shell (0.2%). License: MIT. Homepage: http://pyrefly.org/ Topics: code-quality, contributions-welcome, good-first-issue, hacktoberfest, ide, language-server, lsp, python, rust, type-check, type-checker, typecheck, typechecker, types, typing. Latest release: 0.54.0 (4d ago). Open PRs: 74, open issues: 403. Last activity: 2h ago. Community health: 87%. Top contributors: ndmitchell, stroxler, rchen152, yangdanny97, kinto0, migeed-z, connernilsen, grievejia, samwgoldman, dluo and others.
Rust
Last 12 weeks Β· 1835 commits
Summary Module-level and function-scope without a value now raises an error, as required by PEP 591. Class-level not initialized in the class body or a recognized method (, , etc.) now raises an error. Stub () files are excluded from both checks, since they define interfaces where uninitialised declarations are idiomatic. Implementation (): emit an error when and the annotation is with an explicit type. Guarded by to skip stubs. gains an flag, set in by pre-collecting all instance attributes assigned in recognised methods. emits an error when the flag is false, the field is , and is . Dataclasses, NamedTuples, and Protocols are excluded (synthesised or abstract semantics). Stubs are already excluded via . Test plan [ ] β module-level, function-scope, and class-level errors; class with initialisation produces no error [ ] β files produce no errors for uninitialised [ ] , β updated expectations [ ] Existing dataclass / NamedTuple / Protocol / -initialised-Final tests continue to pass π€ Generated with Claude Code
Describe the Bug Python: 3.12 Variables defined inside a list comprehension are not highlighted or linked to the variable definition, so goto doesnβt work either. Verified in VSCode and sandbox. !Image Sandbox Link https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeSIA2hAARi4BONtE6NlAjADQBMXAzAF1BILiACuAF2hwS5RCADENAKrSoESaTrj0AY2m50cADrozmGGDqMAtqkkB9dONvYYDABT5EzdJIBKGgBaAD4aOEkGRDMaOJoGGElxBjYwExAAOVd3aJpgfABfDLNREDJEsChSQklcWygKZQAFUkrqiIwcAho9I0gAcxSHCCNCM2UAZRgYGgALSUliOEQAelWKq2rCRgHVmHRVzFw9OFW%2B9EHhw0ObJlQAN1RoVGxYXv6IIYYRoxpcYg3WRmMiSOZGYIPDxwUZsAC8NAy-EIHB4JXQIEKYlQBggUIAYtAYBQ0Fg8EQyJigA (Only applicable for extension issues) IDE Information _No response_