We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e45be1 commit 50a59a7Copy full SHA for 50a59a7
opentelemetry-instrumentation/src/opentelemetry/instrumentation/utils.py
@@ -16,7 +16,7 @@
16
from contextlib import contextmanager
17
from importlib import import_module
18
from re import escape, sub
19
-from typing import Dict, Iterable, Sequence
+from typing import Dict, Iterable, Sequence, Union
20
21
from wrapt import ObjectProxy
22
@@ -81,7 +81,7 @@ def http_status_to_status_code(
81
return StatusCode.ERROR
82
83
84
-def unwrap(obj, attr: str):
+def unwrap(obj: Union[object, str], attr: str):
85
"""Given a function that was wrapped by wrapt.wrap_function_wrapper, unwrap it
86
87
The object containing the function to unwrap may be passed as dotted module path string.
0 commit comments