Skip to content

Avoid using variable names used in exceptions - #413

Merged
sandrobonazzola merged 1 commit into
psss:mainfrom
sandrobonazzola:mypy_exceptions
Jun 19, 2025
Merged

Avoid using variable names used in exceptions#413
sandrobonazzola merged 1 commit into
psss:mainfrom
sandrobonazzola:mypy_exceptions

Conversation

@sandrobonazzola

Copy link
Copy Markdown
Collaborator

mypy gets confused when you try to assign a variable with the same name used to handle an exception. Renamed the involved variables to avoid this.

mypy gets confused when you try to assign a variable with the same name
used to handle an exception. Renamed the involved variables to avoid this.

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
@sandrobonazzola
sandrobonazzola merged commit 64dfd8d into psss:main Jun 19, 2025
@sandrobonazzola
sandrobonazzola deleted the mypy_exceptions branch June 19, 2025 10:21
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