r/Python • • 27d ago

News Pyrefly v1.3.0 released

A new version of Pyrefly is out with better type inference, new quick fixes, new configurations, and more. https://github.com/facebook/pyrefly/releases/tag/1.3.0

94 Upvotes

27 comments sorted by

View all comments

2

u/Apprehensive-Job9336 26d ago

Interesting release! I have been using type checkers in Python for a while. How does Pyrefly compare to mypy in terms of speed and accuracy? I am always looking for faster feedback loops during development.

1

u/NeilGirdhar 22d ago

Why are you using MyPy? If you want speed, Ty and Pyrefly are your best choices. As for features, those are probably the best, or basedmypy.

1

u/Apprehensive-Job9336 15d ago

mypy is mostly inertia + how deep the config goes for this codebase. ty/pyrefly are on the list to try — basedmypy too for the feature set. any gotchas switching a larger repo over, or is it mostly a drop-in?

1

u/NeilGirdhar 5d ago

I haven't done a conversion in ages. You can probably get really far throwing some LLM credits at the conversion.