1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Update code formatting - line length

This commit is contained in:
thatmattlove
2021-09-12 15:09:24 -07:00
parent a62785227e
commit 52ebf4663c
50 changed files with 151 additions and 464 deletions

View File

@@ -33,9 +33,7 @@ class AuthError(
super().__init__(error=str(error), device=device.name, proxy=device.proxy)
class RestError(
PublicHyperglassError, template=params.messages.connection_error, level="danger"
):
class RestError(PublicHyperglassError, template=params.messages.connection_error, level="danger"):
"""Raised upon a rest API client error."""
def __init__(self, error: BaseException, *, device: Device):
@@ -86,9 +84,7 @@ class QueryLocationNotFound(NotFound):
def __init__(self, location: Any, **kwargs: Dict[str, Any]) -> None:
"""Initialize a NotFound error for a query location."""
super().__init__(
type=params.web.text.query_location, name=str(location), **kwargs
)
super().__init__(type=params.web.text.query_location, name=str(location), **kwargs)
class QueryTypeNotFound(NotFound):
@@ -96,9 +92,7 @@ class QueryTypeNotFound(NotFound):
def __init__(self, query_type: Any, **kwargs: Dict[str, Any]) -> None:
"""Initialize a NotFound error for a query type."""
super().__init__(
type=params.web.text.query_type, name=str(query_type), **kwargs
)
super().__init__(type=params.web.text.query_type, name=str(query_type), **kwargs)
class QueryGroupNotFound(NotFound):