Skip to content

Comments

[flake8-datetimez] Make DTZ901 example error out-of-the-box#19056

Merged
ntBre merged 1 commit intoastral-sh:mainfrom
MeGaGiGaGon:patch-2
Jul 1, 2025
Merged

[flake8-datetimez] Make DTZ901 example error out-of-the-box#19056
ntBre merged 1 commit intoastral-sh:mainfrom
MeGaGiGaGon:patch-2

Conversation

@MeGaGiGaGon
Copy link
Contributor

Summary

Part of #18972

This PR makes datetime-min-max (DTZ901)'s example error out-of-the-box

Old example

datetime.max

New example

import datetime

datetime.datetime.max

I also added imports to the problem demonstration and use instead.

Test Plan

N/A, no functionality/tests affected

@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

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

Thanks!

@ntBre ntBre merged commit 8cc14ad into astral-sh:main Jul 1, 2025
35 checks passed
@ntBre ntBre added the documentation Improvements or additions to documentation label Jul 1, 2025
@MeGaGiGaGon MeGaGiGaGon deleted the patch-2 branch July 1, 2025 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants