Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect .astimezone() #9

Open
sasanjac opened this issue Dec 12, 2022 · 0 comments · Fixed by sasanjac-lab/flake8-datetimez#1 · May be fixed by #10
Open

Detect .astimezone() #9

sasanjac opened this issue Dec 12, 2022 · 0 comments · Fixed by sasanjac-lab/flake8-datetimez#1 · May be fixed by #10

Comments

@sasanjac
Copy link

Calling .astimezone() should not result in a flake8 violation since it returns a tz-aware datetime object. However because it is called after creating a naive datetime object it is not detected.

sasanjac added a commit to sasanjac-lab/flake8-datetimez that referenced this issue Dec 12, 2022
sasanjac added a commit to sasanjac-lab/flake8-datetimez that referenced this issue Dec 14, 2022
@sasanjac sasanjac reopened this Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant