Skip to content

Commit

Permalink
refactor!: remove is_relative_to() (unused) util method (#2406)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 11, 2024
1 parent f61cb89 commit 2962fae
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/ape/utils/os.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,6 @@
from typing import Any, Optional, Union


# TODO: This method is no longer needed since the dropping of 3.9
# Delete in Ape 0.9 release.
def is_relative_to(path: Path, target: Path) -> bool:
"""
Search a path and determine its relevancy.
Args:
path (str): Path represents a filesystem to find.
target (str): Path represents a filesystem to match.
Returns:
bool: ``True`` if the path is relative to the target path or ``False``.
"""
return target.is_relative_to(path)


def get_relative_path(target: Path, anchor: Path) -> Path:
"""
Compute the relative path of ``target`` relative to ``anchor``,
Expand Down

0 comments on commit 2962fae

Please sign in to comment.