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
« 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.
4"""Pydantic types used in this project."""
6from pathlib import Path
7from typing import Annotated
9from pydantic import AfterValidator
11from structured_tutorials.models.validators import validate_relative_path
13RelativePath = Annotated[Path, AfterValidator(validate_relative_path)]