Skip to content

Commit 0ab50df

Browse files
committed
typing fixes
1 parent cc4d7b9 commit 0ab50df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appdaemon/state.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from enum import Enum
1010
from logging import Logger
1111
from pathlib import Path
12-
from typing import TYPE_CHECKING, Any, Awaitable, List, Literal, Optional, Protocol, Set, overload
12+
from typing import TYPE_CHECKING, Any, Literal, Optional, Protocol, overload
1313

1414
from . import exceptions as ade
1515
from . import utils
@@ -51,7 +51,7 @@ class State:
5151
name: str = "_state"
5252
state: dict[str, dict[str, Any] | utils.PersistentDict]
5353

54-
app_added_namespaces: Set[str]
54+
app_added_namespaces: set[str]
5555

5656
def __init__(self, ad: "AppDaemon"):
5757
self.AD = ad
@@ -234,7 +234,7 @@ async def remove_persistent_namespace(self, namespace: str, state: utils.Persist
234234
self.logger.error('Error removing namespace file %s: %s', ns_file.name, e)
235235
continue
236236

237-
def list_namespaces(self) -> List[str]:
237+
def list_namespaces(self) -> list[str]:
238238
return list(self.state.keys())
239239

240240
def list_namespace_entities(self, namespace: str) -> list[str]:

0 commit comments

Comments
 (0)