diff --git a/homely/__init__.py b/homely/__init__.py index 025ca23..3fd4981 100644 --- a/homely/__init__.py +++ b/homely/__init__.py @@ -1 +1 @@ -version = "0.21.0" +version = "0.21.1" diff --git a/homely/_utils.py b/homely/_utils.py index 3536a46..b395775 100644 --- a/homely/_utils.py +++ b/homely/_utils.py @@ -13,15 +13,16 @@ from io import TextIOWrapper from itertools import chain from os.path import exists, join -from typing import (IO, Any, Generic, Iterable, Iterator, Literal, Optional, - Sequence, TypedDict, TypeVar, Union) - -from typing_extensions import NotRequired +from typing import (IO, TYPE_CHECKING, Any, Generic, Iterable, Iterator, + Literal, Optional, Sequence, TypedDict, TypeVar, Union) from homely._asyncioutils import _runasync from homely._errors import JsonError from homely._vcs import Repo, fromdict +if TYPE_CHECKING: + from typing_extensions import NotRequired + def _loadmodule(name: str, file_path: str) -> object: spec = importlib.util.spec_from_file_location(name, file_path) @@ -270,8 +271,8 @@ class RepoListEntry(TypedDict): repoid: str localrepo: dict[str, str | bool] localpath: str - canonicalpath: NotRequired[str] - canonicalrepo: NotRequired[dict[str, str | bool]] + canonicalpath: "NotRequired[str]" + canonicalrepo: "NotRequired[dict[str, str | bool]]" class RepoListConfig(JsonConfig[list[RepoListEntry]]): diff --git a/pyproject.toml b/pyproject.toml index 53ccf68..7cd3743 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,8 @@ classifiers=[ requires-python = ">=3.10" # this also needs to be updated in homely/__init__.py -version = "0.21.0" +# and uv.lock by running "uv lock" +version = "0.21.1" dependencies = [ "python-daemon>=2.3.0", diff --git a/uv.lock b/uv.lock index e141be2..1456fad 100644 --- a/uv.lock +++ b/uv.lock @@ -329,7 +329,7 @@ wheels = [ [[package]] name = "homely" -version = "0.21.0" +version = "0.21.1" source = { editable = "." } dependencies = [ { name = "click" },