Skip to content

Commit

Permalink
compat
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Feb 23, 2025
1 parent 30d6cdf commit 2c84cbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pint/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ class BehaviorChangeWarning(UserWarning):
try:
import tomli_w # noqa: F401

HAS_TOMLLI_W = True
HAS_TOMLI_W = True
except ImportError:
HAS_TOMLLI_W = False
HAS_TOMLI_W = False

if sys.version_info >= (3, 11):
import tomllib # noqa
Expand All @@ -267,10 +267,10 @@ class BehaviorChangeWarning(UserWarning):
else:
tomllib = None

if HAS_TOMLLI_W:
if HAS_TOMLI_W:
import tomli_w # noqa: F401
else:
tomllib_w = None
tomli_w = None


if HAS_BABEL:
Expand Down

0 comments on commit 2c84cbe

Please sign in to comment.