You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from . importchecksimportdjangoifdjango.VERSION< (3, 2):
default_app_config='guardian.apps.GuardianConfig'# PEP 396: The __version__ attribute's value SHOULD be a string.__version__='2.4.0'
...
changed to:
from . importchecksimportdjango__version__='2.4.0'
...
We think the comment # PEP 396: The __version__ attribute's value SHOULD be a string. should not be removed.
The text was updated successfully, but these errors were encountered:
BonaFideIT
pushed a commit
to BonaFideIT/django-upgrade
that referenced
this issue
Oct 10, 2024
Python Version
3.11.10
Django Version
4.2.15
Package Version
1.21.0
Description
Hi,
while upgrading the
devel
branch from https://github.com/django-guardian/django-guardian to a new django version, we run django-upgrade like thisgit ls-files -z -- '*.py' | xargs -0 django-upgrade --target-version 5.0
.The following code of https://github.com/django-guardian/django-guardian/blob/devel/guardian/__init__.py:
changed to:
We think the comment
# PEP 396: The __version__ attribute's value SHOULD be a string.
should not be removed.The text was updated successfully, but these errors were encountered: