top | item 44014489

(no title)

ThePhysicist | 9 months ago

Seems there are at least three Rust-based competitors for type checkers in Python now (Microsoft, Facebook, Astral), and of course there's still mypy.

discuss

order

Yossarrian22|9 months ago

Close, Microsoft’s type checker Pyright is Typescript. Its still faster than mypy for me though.

chrisweekly|9 months ago

Pls forgive my ignorance, but how is Typescript (a superset of Javascript) used to type-check Python?

morkalork|9 months ago

They're all static type checkers right? None for runtime?

Yossarrian22|9 months ago

Yes. If you want runtime validation of data you’re taking in people recommended pydantic. If you’re looking for runtime validation within your own code I’ve seen people use beartype, though to be honest I don’t personally understand the value added from it