Skip to content

Commit

Permalink
replace noqa with type: ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
smacke committed May 25, 2023
1 parent 11107c7 commit 2649b72
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions jupyter_core/utils/patched_nest_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ def leave_task(loop, task):

asyncio.tasks._enter_task = enter_task
asyncio.tasks._leave_task = leave_task
curr_tasks = asyncio.tasks._current_tasks # noqa
curr_tasks = asyncio.tasks._current_tasks # type: ignore
else:
curr_tasks = Task._current_tasks # noqa
curr_tasks = Task._current_tasks # type: ignore
try:
step_orig = Task._Task__step # noqa
Task._Task__step = step # noqa
step_orig = Task._Task__step # type: ignore
Task._Task__step = step # type: ignore
except AttributeError:
try:
step_orig = Task.__step # noqa
Task.__step = step # noqa
step_orig = Task.__step # type: ignore
Task.__step = step # type: ignore
except AttributeError:
step_orig = Task._step # noqa
Task._step = step # noqa
step_orig = Task._step # type: ignore
Task._step = step # type: ignore

0 comments on commit 2649b72

Please sign in to comment.