Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-08-27 13:56:20 +02:00
1 parent 0d7eec710c
commit 1c2ebdf307
574 files changed
+4389 -1725

No files matched your search

+7 -2
View File
@@ -43,7 +43,9 @@ class HomeAssistantView:
@staticmethod
def json(
result: Any, status_code: int = HTTP_OK, headers: Optional[LooseHeaders] = None,
result: Any,
status_code: int = HTTP_OK,
headers: Optional[LooseHeaders] = None,
) -> web.Response:
"""Return a JSON response."""
try:
@@ -114,7 +116,10 @@ def request_handler_factory(view: HomeAssistantView, handler: Callable) -> Calla
raise HTTPUnauthorized()
_LOGGER.debug(
"Serving %s to %s (auth: %s)", request.path, request.remote, authenticated,
"Serving %s to %s (auth: %s)",
request.path,
request.remote,
authenticated,
)
try: