(cls, v)
| 59 | |
| 60 | @validator("output", pre=True) |
| 61 | def output_validation(cls, v): |
| 62 | predefined_structure = get_predefined_structure() |
| 63 | if v is None: |
| 64 | v = "output/{TIMESTAMP}" |
| 65 | assert isinstance(v, str), f"'output' must be a string, but got {type(v)}" |
| 66 | return v.format(**predefined_structure) |
| 67 | |
| 68 | @classmethod |
| 69 | def post_validate(cls, instance: "AssignmentConfig"): |
nothing calls this directly
no test coverage detected