Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 3, 2023
1 parent 437558f commit 05652c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rest_framework_simplejwt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
try:
if sys.version_info >= (3, 8):
from importlib import metadata

Check warning on line 5 in rest_framework_simplejwt/__init__.py

View check run for this annotation

Codecov / codecov/patch

rest_framework_simplejwt/__init__.py#L5

Added line #L5 was not covered by tests

__version__ = metadata.version("djangorestframework_simplejwt")

Check warning on line 7 in rest_framework_simplejwt/__init__.py

View check run for this annotation

Codecov / codecov/patch

rest_framework_simplejwt/__init__.py#L7

Added line #L7 was not covered by tests
else:
from pkg_resources import DistributionNotFound, get_distribution

__version__ = get_distribution("djangorestframework_simplejwt").version

except DistributionNotFound:
# package is not installed
__version__ = None

0 comments on commit 05652c1

Please sign in to comment.