News for hackers. Stuff that matters.
Re:Ty: A fast Python type checker and language server by rtpg on Wednesday May 07, 2025 @09:51PM (#43922364)
I don't get why so many people go to bat for pyright, my experience with it has been pretty miserable. Open enough instances of it and you're in OOM city. It works, but often gets confused... and of course the absolute audacity of MSFT to say "let's go over to pyright, and by the way we're going to carve up some stuff and put it into pylance instead", meaning that it's totally not within the actual spirit of open source.

I would like to just not use it, but the existence of pyright as a _barely_ functional alternative really sucks the air out of other attempts' continued existence. Real "extend/extinguish" behavior from MSFT.

Re:Ty: A fast Python type checker and language server by lemontheme on Thursday May 08, 2025 @02:30AM (#43923617)
If you haven’t checked it out already, basedpyright is pyright with all the arbitrarily carved out functionality put back in – plus some extra features that you may or may not find useful depending on how strict you like your typing.

Can’t recommend it enough

Re:Ty: A fast Python type checker and language server by rtpg on Friday May 09, 2025 @02:06AM (#43934200)
To be honest I can't respect a project that names itself like that. I am a working professional.
Re:Ty: A fast Python type checker and language server by mil22 on Thursday May 08, 2025 @06:42PM (#43932096)
I tried all the type checkers available as of ~1 year ago, and Pyright worked the best for me. It's not perfect, but it's better than any of the pure Python checkers. Memory is cheap (unless you're buying it from Apple I guess...). Would I take a faster type checker with better memory footprint? Heck yes, assuming equal or superior functionality.
Re:Ty: A fast Python type checker and language server by rtpg on Friday May 09, 2025 @07:42PM (#43941962)
Memory ain’t that cheap on laptops in general! The bigger issue is less “pyright” and more “every tool out there being as heavy as pyright” + docker etc… but things are getting better IMO