Skip to content

Commit

Permalink
Updated counts.py for v0.69.x
Browse files Browse the repository at this point in the history
  • Loading branch information
RhetTbull committed Dec 10, 2024
1 parent 16c61f5 commit cefbdf6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion examples/counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit cefbdf6

Please sign in to comment.