Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mejutoco
on April 21, 2022
|
parent
|
context
|
favorite
| on:
Python’s “type hints” are a bit of a disappointmen...
My favourite way to enforce types in python is to use typeguard‘s typechecked decorator. It is checked at runtime but it can be added gradually.
https://pypi.org/project/typeguard/
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://pypi.org/project/typeguard/