News for hackers. Stuff that matters.
Re:Python type hints may not be not for me in practice by Spivak on Wednesday November 27, 2024 @04:41PM (#42260072)
Type hints alone don't do this, but you can use Pydantic to accomplish what you want. In Python type hints aren't enforced anywhere at runtime. They're for a type-checker to validate your source.

https://docs.pydantic.dev/latest/concepts/validation_decorat...

There are no comments on this comment yet.