Import Callable from collections.abc (#60354)

pull/60372/head
Marc Mueller 2021-11-25 22:23:48 +01:00 committed by GitHub
parent 4360fb733f
commit de78c4f0f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 20 additions and 14 deletions

View File

@ -1,8 +1,9 @@
"""Support for Azure DevOps sensors."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from typing import Any, Callable
from typing import Any
from aioazuredevops.builds import DevOpsBuild

View File

@ -1,10 +1,11 @@
"""AVM FRITZ!Box binary sensors."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from datetime import datetime, timedelta
import logging
from typing import Any, Callable, Literal
from typing import Any, Literal
from fritzconnection.core.exceptions import (
FritzActionError,

View File

@ -2,8 +2,9 @@
from __future__ import annotations
import asyncio
from collections.abc import Callable
import logging
from typing import Callable, TypeVar
from typing import TypeVar
from pyfronius import Fronius, FroniusError

View File

@ -1,8 +1,9 @@
"""Class to hold all sensor accessories."""
from __future__ import annotations
from collections.abc import Callable
import logging
from typing import Callable, NamedTuple
from typing import NamedTuple
from pyhap.const import CATEGORY_SENSOR

View File

@ -1,10 +1,10 @@
"""The lookin integration climate platform."""
from __future__ import annotations
from collections.abc import Coroutine
from collections.abc import Callable, Coroutine
from datetime import timedelta
import logging
from typing import Any, Callable, Final, cast
from typing import Any, Final, cast
from aiolookin import Climate, MeteoSensor, SensorID

View File

@ -1,11 +1,12 @@
"""The met component."""
from __future__ import annotations
from collections.abc import Callable
from datetime import timedelta
import logging
from random import randrange
from types import MappingProxyType
from typing import Any, Callable
from typing import Any
import metno

View File

@ -1,8 +1,8 @@
"""Support for RDW binary sensors."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from typing import Callable
from vehicle import Vehicle

View File

@ -1,9 +1,9 @@
"""Support for RDW sensors."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from datetime import date
from typing import Callable
from vehicle import Vehicle

View File

@ -1,8 +1,9 @@
"""Constants used by Speedtest.net."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from typing import Callable, Final
from typing import Final
from homeassistant.components.sensor import (
STATE_CLASS_MEASUREMENT,

View File

@ -1,9 +1,9 @@
"""Constants for the Tuya integration."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass, field
from enum import Enum
from typing import Callable
from tuya_iot import TuyaCloudOpenAPIEndpoint

View File

@ -1,9 +1,9 @@
"""The ViCare integration."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
import logging
from typing import Callable
from PyViCare.PyViCare import PyViCare
from PyViCare.PyViCareDevice import Device

View File

@ -1,10 +1,10 @@
"""Viessmann ViCare sensor device."""
from __future__ import annotations
from collections.abc import Callable
from contextlib import suppress
from dataclasses import dataclass
import logging
from typing import Callable
from PyViCare.PyViCareDevice import Device
from PyViCare.PyViCareUtils import (

View File

@ -1,9 +1,9 @@
"""Support for WLED sensors."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from datetime import datetime, timedelta
from typing import Callable
from wled import Device as WLEDDevice