Skip to content

Commit

Permalink
fix type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
tfeldmann committed Jan 5, 2024
1 parent 2546345 commit 54fc169
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions organize/filters/exif.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from organize.output import Output
from organize.resource import Resource

ExifStrDict = Dict[str, Dict[str, str]]
ExifValue = Union[str, datetime, date, timedelta]
ExifDict = Dict[str, Dict[str, ExifValue]]
ExifDefaultDict = DefaultDict[str, DefaultDict[str, ExifValue]]
Expand Down Expand Up @@ -118,7 +119,7 @@ def convert_recursive(data):
return result


def exifread_read(path: Path) -> ExifDict:
def exifread_read(path: Path) -> ExifStrDict:
"""
Uses the `exifread` library to read the EXIF data
"""
Expand All @@ -131,7 +132,7 @@ def exifread_read(path: Path) -> ExifDict:
return grouped


def exiftool_read(path: Path) -> ExifDict:
def exiftool_read(path: Path) -> ExifStrDict:
"""
Uses the `exiftool` tool by Phil Harvey to read the EXIF data
"""
Expand Down

0 comments on commit 54fc169

Please sign in to comment.