Skip to content

Commit

Permalink
Merge pull request #2518 from activeloopai/fix_list_type
Browse files Browse the repository at this point in the history
Fixed List[str] annotation in delete_branch feature
  • Loading branch information
davidbuniat authored Aug 5, 2023
2 parents ac76dea + 1aa479a commit 4f6a2cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deeplake/util/version_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def delete_branch(


def _delete_branch_and_commits(
branch_name: str, all_branch_commits: list[str], dataset, storage
branch_name: str, all_branch_commits: List[str], dataset, storage
) -> None:
"""
Physically deletes the given branch and list of commits from the version_control_info.json and versions directories.
Expand Down Expand Up @@ -401,7 +401,7 @@ def _delete_branch_and_commits(
).encode("utf-8")


def _find_branch_commits(branch_name: str, version_state: dict) -> list[str]:
def _find_branch_commits(branch_name: str, version_state: dict) -> List[str]:
"""
Returns a list of all commits used by the given branch
"""
Expand Down

0 comments on commit 4f6a2cb

Please sign in to comment.