Skip to content

Commit

Permalink
Remove redundant NOQA flags
Browse files Browse the repository at this point in the history
before ruff, the flake8 version we used didn't support match/case statements. ruff does now
  • Loading branch information
seanbudd committed Aug 29, 2024
1 parent 7d247ee commit bfd96a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/utils/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def callJobOnThread(*args, **kwargs):
wx.CallAfter(task, *args, **kwargs)
case ThreadTarget.DAEMON:

def callJobOnThread(*args, **kwargs): # noqa F811: lint bug with flake8 4.0.1 not recognizing case statement
def callJobOnThread(*args, **kwargs):
t = threading.Thread(
target=task,
args=args,
Expand All @@ -196,7 +196,7 @@ def callJobOnThread(*args, **kwargs): # noqa F811: lint bug with flake8 4.0.1 n
t.run()
case ThreadTarget.CUSTOM:

def callJobOnThread(*args, **kwargs): # noqa F811: lint bug with flake8 4.0.1 not recognizing case statement
def callJobOnThread(*args, **kwargs):
log.debug(f"Starting thread for job: {task.__name__} on custom thread")
task(*args, **kwargs)
case _:
Expand Down

0 comments on commit bfd96a3

Please sign in to comment.