Coverage for structured_tutorials / models / types.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-04 13:17 +0200

1# Copyright (c) 2026 Mathias Ertl 

2# Licensed under the MIT License. See LICENSE file for details. 

3 

4"""Pydantic types used in this project.""" 

5 

6from pathlib import Path 

7from typing import Annotated 

8 

9from pydantic import AfterValidator 

10 

11from structured_tutorials.models.validators import validate_relative_path 

12 

13RelativePath = Annotated[Path, AfterValidator(validate_relative_path)]