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

remove this deprecated element before anyone uses it #173

Merged
merged 1 commit into from
Oct 30, 2023
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 coveo-ref/coveo_ref/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,22 +269,6 @@ def _translate_reference_to_another_module(
return new_reference


def resolve_mock_target(target: Any) -> str:
"""

Deprecated: You are encouraged to use `ref` instead, which can resolve a name in a target module.

---
Deprecated docs:

`mock.patch` uses a str-representation of an object to find it, but this doesn't play well with
refactors and renames. This method extracts the str-representation of an object.

This method will not handle _all_ kinds of objects, in which case an AttributeError will most likely be raised.
"""
return f"{target.__module__}.{target.__name__}"


@overload
def ref(target: Any) -> Tuple[str]:
...
Expand Down
Loading