From 2649b726da71306c5158e813523b8c06a4597f50 Mon Sep 17 00:00:00 2001 From: Stephen Macke Date: Thu, 25 May 2023 08:49:01 -0700 Subject: [PATCH] replace noqa with type: ignore --- jupyter_core/utils/patched_nest_asyncio.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/jupyter_core/utils/patched_nest_asyncio.py b/jupyter_core/utils/patched_nest_asyncio.py index fee2530..8555847 100644 --- a/jupyter_core/utils/patched_nest_asyncio.py +++ b/jupyter_core/utils/patched_nest_asyncio.py @@ -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