Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 908aeac

Browse files
authored
Additional fixes for opentracing type hints. (#13362)
1 parent 43adf25 commit 908aeac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/13362.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add missing type hints to open tracing module.

synapse/logging/opentracing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,8 +910,8 @@ def tag_args(func: Callable[P, R]) -> Callable[P, R]:
910910
def _tag_args_inner(*args: P.args, **kwargs: P.kwargs) -> R:
911911
argspec = inspect.getfullargspec(func)
912912
for i, arg in enumerate(argspec.args[1:]):
913-
set_tag("ARG_" + arg, args[i]) # type: ignore[index]
914-
set_tag("args", args[len(argspec.args) :]) # type: ignore[index]
913+
set_tag("ARG_" + arg, str(args[i])) # type: ignore[index]
914+
set_tag("args", str(args[len(argspec.args) :])) # type: ignore[index]
915915
set_tag("kwargs", str(kwargs))
916916
return func(*args, **kwargs)
917917

0 commit comments

Comments
 (0)