fix: make parse_base_url return str as annotated
It returned Path(workspace).parent — a Path — despite the declared str return type. Resolves the mypy return-value error.
This commit is contained in:
parent
297b7c49d0
commit
b6d7ada521
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ def parse_base_url(base_url: str) -> str:
|
||||||
f"got: {base_url}"
|
f"got: {base_url}"
|
||||||
)
|
)
|
||||||
_, workspace = base_url.split(":", 1)
|
_, workspace = base_url.split(":", 1)
|
||||||
return Path(workspace).parent
|
return str(Path(workspace).parent)
|
||||||
|
|
||||||
|
|
||||||
def parse_repo_name(base_url: str) -> str:
|
def parse_repo_name(base_url: str) -> str:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue