diff --git a/examples/counts.py b/examples/counts.py index 03e5fdc9..15d1a742 100644 --- a/examples/counts.py +++ b/examples/counts.py @@ -16,11 +16,16 @@ BURST_KEY, BURST_PICK_TYPE_NONE, BURST_SELECTED, - TIME_DELTA, ) from osxphotos.cli.click_rich_echo import rich_echo as echo from osxphotos.photoquery import QueryOptions +try: + from osxphotos._constants import TIME_DELTA +except ImportError: + # TIME_DELTA moved in v0.69.0 + from osxphotos.photos_datetime import TIME_DELTA + def verbose(*args): print(*args, file=sys.stderr) diff --git a/pyproject.toml b/pyproject.toml index 0fca113a..5777e935 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [tool.ruff] # Docs: https://beta.ruff.rs/docs/ # Rules: https://beta.ruff.rs/docs/rules/ -target-version = "py39" +target-version = "py310" line-length = 320 # TODO: most of these can probasbly be removed but will require code cleanup # These were added to make ruff pass with code in current state -ignore = [ +lint.ignore = [ "E402", "E721", "E722",