Skip to content

Commit

Permalink
Try to fix mypy error.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Apr 20, 2024
1 parent 8d05f3c commit 93c2e8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/clp_logging/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
)

try:
from zoneinfo import ZoneInfo
from zoneinfo import ZoneInfo # type: ignore[import-not-found, unused-ignore]
except ImportError:
from backports.zoneinfo import ZoneInfo
from backports.zoneinfo import ( # type: ignore[import-not-found, no-redef, unused-ignore]
ZoneInfo,
)


class Log:
Expand Down

0 comments on commit 93c2e8f

Please sign in to comment.