From dcd8c4640c2831d73e7538dd4c0486ffdcbf2d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Pich=C3=A9?= Date: Fri, 27 Oct 2023 13:22:39 -0400 Subject: [PATCH] remove this deprecated element before anyone uses it --- coveo-ref/coveo_ref/__init__.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/coveo-ref/coveo_ref/__init__.py b/coveo-ref/coveo_ref/__init__.py index 07b4332..f7124c6 100644 --- a/coveo-ref/coveo_ref/__init__.py +++ b/coveo-ref/coveo_ref/__init__.py @@ -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]: ...