Fix typing.Any spelling (#49673)
This commit is contained in:
parent
85438db1ec
commit
631ab367e2
17 changed files with 55 additions and 36 deletions
|
@ -4,6 +4,7 @@ from __future__ import annotations
|
|||
from datetime import timedelta
|
||||
import logging
|
||||
import operator
|
||||
from typing import Any
|
||||
|
||||
from pyicloud import PyiCloudService
|
||||
from pyicloud.exceptions import (
|
||||
|
@ -355,7 +356,7 @@ class IcloudAccount:
|
|||
return self._fetch_interval
|
||||
|
||||
@property
|
||||
def devices(self) -> dict[str, any]:
|
||||
def devices(self) -> dict[str, Any]:
|
||||
"""Return the account devices."""
|
||||
return self._devices
|
||||
|
||||
|
@ -496,11 +497,11 @@ class IcloudDevice:
|
|||
return self._battery_status
|
||||
|
||||
@property
|
||||
def location(self) -> dict[str, any]:
|
||||
def location(self) -> dict[str, Any]:
|
||||
"""Return the Apple device location."""
|
||||
return self._location
|
||||
|
||||
@property
|
||||
def extra_state_attributes(self) -> dict[str, any]:
|
||||
def extra_state_attributes(self) -> dict[str, Any]:
|
||||
"""Return the attributes."""
|
||||
return self._attrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue