Skip to content

Commit b3c365f

Browse files
committed
Update api.py
Dernière petite modif de linting
1 parent 0ab8749 commit b3c365f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyhilo/api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import random
77
import string
88
import sys
9-
from typing import Any, Callable, Dict, Union, cast
9+
from typing import Any, Callable, Union, cast
1010
from urllib import parse
1111

1212
from aiohttp import ClientSession
@@ -45,6 +45,7 @@
4545
from pyhilo.device import DeviceAttribute, HiloDevice, get_device_attributes
4646
from pyhilo.exceptions import InvalidCredentialsError, RequestError
4747
from pyhilo.util.state import (
48+
StateDict,
4849
WebsocketDict,
4950
WebsocketTransportsDict,
5051
get_state,
@@ -75,7 +76,7 @@ def __init__(
7576
self._backoff_refresh_lock_ws = asyncio.Lock()
7677
self._request_retries = request_retries
7778
self._state_yaml: str = DEFAULT_STATE_FILE
78-
self.state: Dict[str, Any] = {}
79+
self.state: StateDict = {}
7980
self.async_request = self._wrap_request_method(self._request_retries)
8081
self.device_attributes = get_device_attributes()
8182
self.session: ClientSession = session

0 commit comments

Comments
 (0)