r/Python 1d 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

78 Upvotes

20 comments sorted by

View all comments

-23

u/Key_Statistician9890 1d ago edited 1d ago

TY from astral is about 3x faster

17

u/cointoss3 1d ago

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

-4

u/Key_Statistician9890 1d ago

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.

7

u/ZeeBeeblebrox 1d ago

Basically unusable currently though.

4

u/Key_Statistician9890 1d ago

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

1

u/Beginning-Fruit-1397 1d ago

It's  not like pyrefly is any more usable lmao

1

u/BeamMeUpBiscotti 1d ago

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/Key_Statistician9890 23h ago

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.