Skip to content

Public API annotations and type checking with Pyrefly#591

Open
jorenham wants to merge 6 commits intocloudpipe:masterfrom
jorenham:typing
Open

Public API annotations and type checking with Pyrefly#591
jorenham wants to merge 6 commits intocloudpipe:masterfrom
jorenham:typing

Conversation

@jorenham
Copy link
Copy Markdown

@jorenham jorenham commented Apr 20, 2026

I went with Pyrefly here because of its speed and because it's very good at dealing with partially annotated codebases. It also helps that it comes with an LSP (unlike mypy for example), which is great for IDE integration.

Towards #541

Oh and fun fact: This increases the type coverage from 6.3% to 44.9%.

@jorenham
Copy link
Copy Markdown
Author

Also, I noticed that you're still supporting Python 3.8 and 3.9, which are EOL (https://devguide.python.org/versions/). Dropping those would allow us to significantly simplify the type annotations (supporting EOL Python versions is also a bit of a security issue). So would you be open to dropping those? Because if so, then I wouldn't mind opening a PR for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant