Skip to content

Fix E721 type comparisons#2003

Open
LeSingh1 wants to merge 1 commit into
NVIDIA:masterfrom
LeSingh1:fix-ruff-e721-type-comparisons
Open

Fix E721 type comparisons#2003
LeSingh1 wants to merge 1 commit into
NVIDIA:masterfrom
LeSingh1:fix-ruff-e721-type-comparisons

Conversation

@LeSingh1
Copy link
Copy Markdown

This fixes one ignored Ruff rule from #1964.

Changes:

  • Replaces direct type comparisons with isinstance or not isinstance.
  • Removes E721 from the Ruff ignore list.
  • Leaves all other ignored Ruff rules untouched.

Validation:

python -m ruff check . --select E721
python -m ruff check .

Both pass.

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.

1 participant