WIP: Migration to async_pymongo
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import contextlib
|
||||
from pathlib import Path
|
||||
from typing import Mapping, Union
|
||||
|
||||
from exif import Image
|
||||
|
||||
@@ -21,7 +23,7 @@ def decimal_coords(coords: float, ref: str) -> float:
|
||||
return round(decimal_degrees, 5)
|
||||
|
||||
|
||||
def extract_location(filepath: str) -> dict:
|
||||
def extract_location(filepath: Union[str, Path]) -> Mapping[str, float]:
|
||||
"""Get location data from image
|
||||
|
||||
### Args:
|
||||
|
Reference in New Issue
Block a user