chore: set up ruff as a new linter/formatter (#28158)

This commit is contained in:
Maxime Beauchemin
2024-04-24 17:19:53 -07:00
committed by GitHub
parent e8a678b75a
commit 2d63722150
579 changed files with 2508 additions and 2542 deletions

View File

@@ -169,5 +169,6 @@ def _make_decorator(
def _get_logger(decorated: Decorated) -> Logger:
module = getmodule(decorated)
return module.__dict__.get(
_LOGGER_VAR_NAME, logging.getLogger(module.__name__) # type: ignore
_LOGGER_VAR_NAME,
logging.getLogger(module.__name__), # type: ignore
)