Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: remove is_relative_to() (unused) util method #2406

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading