3 ms·
The fact that we can't have a type for JSON really does make it look like a toy.
by remram 5y ago
The fact that we can't have a type for JSON really does make it look like a toy.
- ImprobableTruth 5y agoThis is (for now) a limitation of mypy, not of the type system. Pyright and Pyre both can type JSON since they support recursive type aliases.
- ok123456 5y agoUse pydantic then. Then you get type checking and validation for your json blobs.