Skip to content

Commit 9ba772b

Browse files
committed
Implement typing-suggestions
1 parent 3701bcb commit 9ba772b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugwise/legacy/smile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from __future__ import annotations
66

77
import datetime as dt
8-
from typing import Any
8+
from typing import Any, Awaitable, Callable
99

1010
from plugwise.constants import (
1111
APPLIANCES,
@@ -40,7 +40,7 @@ def __init__(
4040
self,
4141
host: str,
4242
password: str,
43-
request: etree,
43+
request: Callable[..., Awaitable[Any]],
4444
timeout: int,
4545
websession: aiohttp.ClientSession,
4646
_is_thermostat: bool,

plugwise/smile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from __future__ import annotations
66

77
import datetime as dt
8-
from typing import Any
8+
from typing import Any, Awaitable, Callable
99

1010
from plugwise.constants import (
1111
ADAM,
@@ -45,7 +45,7 @@ def __init__(
4545
self,
4646
host: str,
4747
password: str,
48-
request: etree,
48+
request: Callable[..., Awaitable[Any]],
4949
timeout: int,
5050
websession: aiohttp.ClientSession,
5151
_cooling_present: bool,

0 commit comments

Comments
 (0)