Skip to content

Commit

Permalink
remove this deprecated element before anyone uses it
Browse files Browse the repository at this point in the history
  • Loading branch information
jonapich committed Oct 27, 2023
1 parent 8cc2db2 commit dcd8c46
Showing 1 changed file with 0 additions and 16 deletions.
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

0 comments on commit dcd8c46

Please sign in to comment.