Skip to content

Conversation

mdickinson
Copy link
Member

A recent release of flake8 started complaining about redundant uses of global inside functions/methods, causing flake8 errors in the Traits style checks. (The relevant change is in pyflakes 3.3.0: see PyCQA/pyflakes#825.)

This PR removes those global declarations.

@mdickinson mdickinson changed the title Fix unnecessary uses of 'global', highlighted by a recent flake8 release Remove unnecessary uses of 'global', highlighted by a recent flake8 release Apr 11, 2025
@mdickinson mdickinson changed the title Remove unnecessary uses of 'global', highlighted by a recent flake8 release Remove unnecessary uses of 'global' Apr 11, 2025
Copy link

@flongford flongford left a comment

Choose a reason for hiding this comment

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

LGTM!

@mdickinson mdickinson merged commit 9b91e74 into main Apr 11, 2025
32 checks passed
@mdickinson mdickinson deleted the fix/flake8-errors branch April 11, 2025 13:55
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.

2 participants