python
Validate data with dataclasses
Use __post_init__ to reject bad values as soon as an object is created.
Copy-ready, tested snippets for Python, Flask, JavaScript, SQL, HTML, CSS and Bash. Open any of them in the playground.
1 snippets
Use __post_init__ to reject bad values as soon as an object is created.
No saved snippets on this page yet. Use the bookmark button to save one.