Skip to content

Commit 70d8277

Browse files
committed
python 3.10 fix
1 parent 0b8cb45 commit 70d8277

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

appdaemon/dependency_manager.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
from dataclasses import InitVar, dataclass, field
44
from functools import partial
55
from pathlib import Path
6-
from typing import Iterable, Self
6+
from typing import Iterable
77

8+
from . import utils
89
from .dependency import find_all_dependents, get_dependency_graph, get_full_module_name, reverse_graph, topo_sort
910
from .models.config.app import AllAppConfig, BaseApp
1011
from .models.internal.file_check import FileCheck
11-
from . import utils
12+
1213

1314
@dataclass
1415
class Dependencies(ABC):
@@ -157,7 +158,7 @@ def from_app_directory(
157158
app_dir: Path,
158159
exclude: str | Iterable[str] | None = None,
159160
config_suffix: str = ".yaml",
160-
) -> Self:
161+
) -> "DependencyManager":
161162
"""Creates a new instance of the dependency manager from the given app directory"""
162163
match exclude:
163164
case str():

0 commit comments

Comments
 (0)