🐛 return Path instead of FileLocation

This commit is contained in:
Ondřej Samohel 2024-12-01 22:24:15 +01:00
parent 595a3546f3
commit cc543fb6a2
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -126,7 +126,7 @@ class FileLocations(TraitBase):
self,
frame: int,
sequence_trait: Optional[Sequence] = None,
) -> Optional[FileLocation]:
) -> Optional[Path]:
"""Get file location for a frame.
This method will return the file location for a given frame. If the
@ -138,7 +138,7 @@ class FileLocations(TraitBase):
frame range specs from.
Returns:
Optional[FileLocation]: File location for the frame.
Optional[Path]: File location for the frame.
"""
frame_regex = r"\.(?P<frame>(?P<padding>0*)\d+)\.\D+\d?$"