Upgrade pylint to 2.6.0 (#39363)
This commit is contained in:
1 parent
67de1d3466
commit
1bf2c4d976
52 files changed
+77
-86
No files matched your search
@@ -10,7 +10,7 @@ from typing import Any, Callable, Coroutine, TypeVar
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
T = TypeVar("T") # pylint: disable=invalid-name
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
def fire_coroutine_threadsafe(coro: Coroutine, loop: AbstractEventLoop) -> None:
|
||||
|
||||
@@ -34,7 +34,7 @@ class HomeAssistantQueueHandler(logging.handlers.QueueHandler):
|
||||
"""Emit a log record."""
|
||||
try:
|
||||
self.enqueue(record)
|
||||
except asyncio.CancelledError: # pylint: disable=try-except-raise
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
except Exception: # pylint: disable=broad-except
|
||||
self.handleError(record)
|
||||
|
||||
Reference in new issue
Block a user