Replace pylint protected-access with Ruff SLF001 (#115735)

This commit is contained in:
Sid
2024-05-06 20:33:26 +02:00
committed by GitHub
parent 460c05dc43
commit b456d97e65
90 changed files with 168 additions and 223 deletions

View File

@@ -24,7 +24,7 @@ EXECUTOR_SHUTDOWN_TIMEOUT = 10
def _log_thread_running_at_shutdown(name: str, ident: int) -> None:
"""Log the stack of a thread that was still running at shutdown."""
frames = sys._current_frames() # pylint: disable=protected-access
frames = sys._current_frames() # noqa: SLF001
stack = frames.get(ident)
formatted_stack = traceback.format_stack(stack)
_LOGGER.warning(