mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-25 02:38:30 +00:00
Enable and convert to future annotations (#838)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
"""Tests for SMART devices."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from typing import Any, Dict
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
from pytest_mock import MockerFixture
|
||||
@@ -99,7 +101,7 @@ async def test_update_module_queries(dev: SmartDevice, mocker: MockerFixture):
|
||||
assert dev.modules
|
||||
|
||||
await dev.update()
|
||||
full_query: Dict[str, Any] = {}
|
||||
full_query: dict[str, Any] = {}
|
||||
for mod in dev.modules.values():
|
||||
full_query = {**full_query, **mod.query()}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user