From f4d382699f4ca9f1a41a05befe4fa7f9d2927a69 Mon Sep 17 00:00:00 2001 From: Pranav Shah <34034134+shahpnmlab@users.noreply.github.com> Date: Wed, 28 Feb 2024 23:39:31 +0000 Subject: [PATCH] Made SubFramePath a PureWindowsPath. (#23) --- src/mdocfile/data_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mdocfile/data_models.py b/src/mdocfile/data_models.py index 44a4059..d8c8e45 100644 --- a/src/mdocfile/data_models.py +++ b/src/mdocfile/data_models.py @@ -1,5 +1,5 @@ from pydantic import field_validator, BaseModel -from pathlib import Path +from pathlib import Path, PureWindowsPath from typing import List, Optional, Tuple, Union, Sequence from mdocfile.utils import find_section_entries, find_title_entries @@ -98,7 +98,7 @@ class MdocSectionData(BaseModel): AlignedPieceCoords: Optional[Union[Tuple[float, float], Tuple[float, float, float]]] = None AlignedPieceCoordsVS: Optional[ Union[Tuple[float, float], Tuple[float, float, float]]] = None - SubFramePath: Optional[Path] = None + SubFramePath: Optional[PureWindowsPath] = None NumSubFrames: Optional[int] = None FrameDosesAndNumbers: Optional[Sequence[Tuple[float, int]]] = None DateTime: Optional[str] = None