Skip to content

Conversation

@max-models
Copy link
Member

@max-models max-models commented Oct 29, 2025

Solves the following issue(s):

Closes #68

According to PEP 8, "Comparisons to singletons like None should always be done with is or is not, never the equality operators."

This PR fixes Ruff errors E711, E714, E721, and F722.

@max-models max-models linked an issue Oct 29, 2025 that may be closed by this pull request
@max-models
Copy link
Member Author

Replaced with #90

@max-models max-models closed this Oct 30, 2025
@max-models max-models deleted the 68-replace-none-with-is-none branch October 30, 2025 19:26
max-models added a commit that referenced this pull request Nov 17, 2025
Redo of #69

**Solves the following issue(s):**

Closes #68

According to [PEP
8](https://peps.python.org/pep-0008/#programming-recommendations),
"Comparisons to singletons like None should always be done with is or is
not, never the equality operators."

This PR fixes Ruff errors
[E711](https://docs.astral.sh/ruff/rules/none-comparison/),
[E714](https://docs.astral.sh/ruff/rules/not-is-test/),
[E721](https://docs.astral.sh/ruff/rules/type-comparison/), and
[F722](https://docs.astral.sh/ruff/rules/forward-annotation-syntax-error/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace == None with is None

2 participants