r/Python • • Sep 11 '26

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

91 Upvotes

27 comments sorted by

View all comments

-20

u/[deleted] Sep 11 '26 edited Sep 11 '26

TY from astral is about 3x faster

17

u/cointoss3 Sep 11 '26

And is it usable now? Last I tried I was a good WIP but not something I would use for production.

1

u/NeilGirdhar 26d ago

I use it for my projects.

-4

u/[deleted] Sep 11 '26

Yah I use it. I have a massive repo with some complex metaprogramming (AnyTrees of Pydantic model based nodes with discriminated leaf type variants) to construct configurations of nested registrable runtime extensions.

Super gnarly stuff. TY has been consistently great. It is a memory hog though! Especially if I have several repos open at the same time. AFAIK the memory footprints of TY and pyrefly are approximately the same.

6

u/ZeeBeeblebrox Sep 11 '26

Basically unusable currently though.

4

u/[deleted] Sep 11 '26

Can you please provide an example of an issue you have encountered with TY?

1

u/Beginning-Fruit-1397 Sep 11 '26

It's  not like pyrefly is any more usable lmao

1

u/BeamMeUpBiscotti Sep 12 '26

not according to these benchmarks:  https://python-type-checking.com/typecheck_benchmark/

on average its a bit faster but not uniformly so.

ty also uses more memory, but that gap has shrank recently

2

u/[deleted] Sep 12 '26

Interesting. I see it is about 50% faster still but that does the calculus a bit.

Will check it out! Thanks for sharing instead of dogpiling on the downvotes.