move FlakeId to flake id

move FlakeId to flake id
This commit is contained in:
Jörg Thalheim
2024-07-03 13:03:40 +02:00
parent f5831f744c
commit 6037ad1ce0
30 changed files with 91 additions and 93 deletions

View File

@@ -19,12 +19,12 @@ class FlakeId:
@property
def path(self) -> Path:
assert isinstance(self._value, Path)
assert isinstance(self._value, Path), f"Flake {self._value} is not a local path"
return self._value
@property
def url(self) -> str:
assert isinstance(self._value, str)
assert isinstance(self._value, str), f"Flake {self._value} is not a remote url"
return self._value
def is_local(self) -> bool: