Skip to content

Commit

Permalink
set right types
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerluis1982 committed Feb 12, 2023
1 parent 977c958 commit 5d25b55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/installation/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def load(

class Locker(BaseLocker):
def __init__(self, lock_path: str | Path) -> None:
self._lock = TOMLFile(Path(lock_path).joinpath("poetry.lock"))
self._lock = Path(lock_path).joinpath("poetry.lock")
self._written_data = None
self._locked = False
self._content_hash = self._get_content_hash()
Expand All @@ -112,7 +112,7 @@ def written_data(self) -> dict | None:
return self._written_data

def set_lock_path(self, lock: str | Path) -> Locker:
self._lock = TOMLFile(Path(lock).joinpath("poetry.lock"))
self._lock = Path(lock).joinpath("poetry.lock")

return self

Expand Down
4 changes: 2 additions & 2 deletions tests/installation/test_installer_old.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def load(

class Locker(BaseLocker):
def __init__(self, lock_path: str | Path) -> None:
self._lock = TOMLFile(Path(lock_path).joinpath("poetry.lock"))
self._lock = Path(lock_path).joinpath("poetry.lock")
self._written_data = None
self._locked = False
self._content_hash = self._get_content_hash()
Expand All @@ -64,7 +64,7 @@ def written_data(self) -> dict | None:
return self._written_data

def set_lock_path(self, lock: str | Path) -> Locker:
self._lock = TOMLFile(Path(lock).joinpath("poetry.lock"))
self._lock = Path(lock).joinpath("poetry.lock")

return self

Expand Down

0 comments on commit 5d25b55

Please sign in to comment.