|
|
|
|
|
by Austizzle
877 days ago
|
|
Not exactly, but if you use something like Pydantic, you can check data at the boundaries of your application/library. If the data passes through the pydantic model, it's safe. Add static type checking of your code through mypy or pyright, and now you can reasonably guarantee that your code is type safe, and stuff interacting with your code is type safe. Not perfect, but it's a reasonable approach for important libraries! |
|