News for hackers. Stuff that matters.
Re:An Update on Pytype by jolux on Wednesday August 20, 2025 @02:07PM (#44964498)
I believe Pyrefly is stricter, so it may be a better choice for new projects but harder to integrate into existing ones without type-checking.
Re:An Update on Pytype by denis- on Wednesday August 20, 2025 @03:55PM (#44965728)
I have a medium-sized codebase that is all green when running mypy with the strictest configuration possible.

Pyrefly spits put around 200 errors for the same codebase.

Most errors are related to SQLAlchemy.

Re:An Update on Pytype by rhaps0dy on Wednesday August 20, 2025 @06:40PM (#44967262)
I mean, sqlalchemy until very recently needed a mypy plugin to type correctly (https://docs.sqlalchemy.org/en/20/orm/extensions/mypy.html), which was just deprecated in 2.0.0.

Perhaps you should do the upgrade (https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html...) and try again?

Re:An Update on Pytype by samwgoldman on Thursday August 21, 2025 @01:52PM (#44975884)
(Pyrefly dev here) Thanks for trying it out! If you have any feedback or bug reports, please don't hesitate to file issues on GitHub or find us on Discord. We have some open issues for SQLAlchemy (like [1]). I'm definitely curious to hear if there are any gaps from your perspective, having an already strictly-typed codebase.

1. https://github.com/facebook/pyrefly/issues/954