Skip to content

[flake8-datetimez] Allow timezone-safe strptime chains (DTZ007) - #28023

Merged
ntBre merged 1 commit into
astral-sh:mainfrom
jelle-openai:jelle/codex/dtz007-timezone-chain
Aug 25, 2026
Merged

ntBre merged 1 commit into
astral-sh:mainfrom
jelle-openai:jelle/codex/dtz007-timezone-chain

Conversation

@jelle-openai

Copy link
Copy Markdown
Contributor

Use the shared astimezone-chain check to recognize timezone conversions after one or more replace calls.

Fixes #28014.

Use the shared astimezone-chain check to recognize timezone conversions
after one or more replace calls.

Fixes astral-sh#28014.
@astral-sh-bot
astral-sh-bot Bot requested a review from ntBre August 25, 2026 03:38
@astral-sh-bot

astral-sh-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre added the bug An issue describing something that isn't working, or a PR that fixes a bug label Aug 25, 2026

@ntBre ntBre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ntBre
ntBre merged commit d1e842e into astral-sh:main Aug 25, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue describing something that isn't working, or a PR that fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

call-datetime-strptime-without-zone (DTZ007) false positive with safe method chain

2 participants