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

put None at the end in Unions - incoming RUF036 #18905

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

altendky
Copy link
Contributor

@altendky altendky commented Nov 19, 2024

Purpose:

https://docs.astral.sh/ruff/rules/none-not-at-end-of-union/

not otherwise being complained about because it seems to be a new rule since our present 0.7.1 version. just figured i'd fix them now while i saw them.

Current Behavior:

New Behavior:

Testing Notes:

@altendky altendky requested a review from a team as a code owner November 19, 2024 20:22
@altendky altendky added Changed Required label for PR that categorizes merge commit message as "Changed" for changelog Exclude_Notes Use this label if the changes in the PR should be excluded from the release notes labels Nov 19, 2024
@altendky altendky requested a review from emlowe November 19, 2024 20:24
Copy link
Contributor

@Quexington Quexington left a comment

Choose a reason for hiding this comment

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

Masterful

Copy link
Contributor

@emlowe emlowe left a comment

Choose a reason for hiding this comment

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

seems a little pedantic, but sure

@altendky
Copy link
Contributor Author

Yeah, I seems nice for it to have a known place but I didn't go looking for this one. It just turned up when I was running my local build of ruff to test out the other check I'm adding and I figured I'd go along instead of disabling it.

@pmaslana pmaslana merged commit 29da4a3 into main Nov 21, 2024
363 checks passed
@pmaslana pmaslana deleted the none_at_the_end_ruf036 branch November 21, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Required label for PR that categorizes merge commit message as "Changed" for changelog Exclude_Notes Use this label if the changes in the PR should be excluded from the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants