Skip to content

Commit 4db50aa

Browse files
committed
Compatibility for Python 3.10
1 parent 50baffc commit 4db50aa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ rich = ["rich"]
6161
line-length = 88
6262
indent-width = 4
6363

64-
# Assume Python 3.11
65-
target-version = "py311"
64+
# Assume Python 3.10
65+
target-version = "py310"
6666

6767
[tool.ruff.lint]
6868
select = ["N", "F", "I", "UP", "PL", "A", "G", "S", "E", "SIM", "B"]

src/odin/datetimeutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class IgnoreTimezone:
2121

2222

2323
# Keep for backwards compatibility
24-
utc = datetime.UTC
24+
utc = datetime.timezone.utc
2525

2626

2727
class LocalTimezone(datetime.tzinfo):

0 commit comments

Comments
 (0)