Add type ignore error codes [core] (#66773)

This commit is contained in:
Marc Mueller
2022-02-18 08:09:22 +01:00
committed by GitHub
parent 58551ec66d
commit 8d2fb72cc3
8 changed files with 18 additions and 18 deletions

View File

@@ -321,7 +321,7 @@ def async_enable_logging(
logging.getLogger("aiohttp.access").setLevel(logging.WARNING)
sys.excepthook = lambda *args: logging.getLogger(None).exception(
"Uncaught exception", exc_info=args # type: ignore
"Uncaught exception", exc_info=args # type: ignore[arg-type]
)
threading.excepthook = lambda args: logging.getLogger(None).exception(
"Uncaught thread exception",