This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Union, List | |
| from dataclasses import dataclass | |
| class Validations: | |
| def __post_init__(self): | |
| """Run validation methods if declared. | |
| The validation method can be a simple check | |
| that raises ValueError or a transformation to |