diff options
author | David Robertson <davidr@element.io> | 2022-09-30 16:37:48 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-09-30 16:37:48 +0100 |
commit | 8e52cb0bce4c4e42a0f151f16e51529b7aba8f7d (patch) | |
tree | d774cbdb7c80fe6bfb9350809397c8d18bffa5ca /synapse/logging/opentracing.py | |
parent | Update mypy and mypy-zope (#13925) (diff) | |
download | synapse-8e52cb0bce4c4e42a0f151f16e51529b7aba8f7d.tar.xz |
Revert "Update mypy and mypy-zope (#13925)"
This reverts commit 6d543d6d9f56e39199b7e460d0081b02d61f12be.
Diffstat (limited to 'synapse/logging/opentracing.py')
-rw-r--r-- | synapse/logging/opentracing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py index 8ce5a2a338..ca2735dd6d 100644 --- a/synapse/logging/opentracing.py +++ b/synapse/logging/opentracing.py @@ -992,9 +992,9 @@ def tag_args(func: Callable[P, R]) -> Callable[P, R]: # FIXME: We could update this to handle any type of function by ignoring the # first argument only if it's named `self` or `cls`. This isn't fool-proof # but handles the idiomatic cases. - for i, arg in enumerate(args[1:], start=1): + for i, arg in enumerate(args[1:], start=1): # type: ignore[index] set_tag(SynapseTags.FUNC_ARG_PREFIX + argspec.args[i], str(arg)) - set_tag(SynapseTags.FUNC_ARGS, str(args[len(argspec.args) :])) + set_tag(SynapseTags.FUNC_ARGS, str(args[len(argspec.args) :])) # type: ignore[index] set_tag(SynapseTags.FUNC_KWARGS, str(kwargs)) yield |