diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-09-12 07:16:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 07:16:09 -0400 |
commit | ba48c563c98966400488c8972d2e9964f9510399 (patch) | |
tree | b30a6fd493358153dfc875321738e39482b6f565 /synapse/logging | |
parent | Stop purging tables which are slated for removal. (#16273) (diff) | |
download | synapse-ba48c563c98966400488c8972d2e9964f9510399.tar.xz |
Bump mypy from 1.4.1 to 1.5.1. (#16300)
Diffstat (limited to 'synapse/logging')
-rw-r--r-- | synapse/logging/opentracing.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py index 5c3045e197..4454fe29a5 100644 --- a/synapse/logging/opentracing.py +++ b/synapse/logging/opentracing.py @@ -991,11 +991,7 @@ def trace_with_opname( if not opentracing: return func - # type-ignore: mypy seems to be confused by the ParamSpecs here. - # I think the problem is https://github.com/python/mypy/issues/12909 - return _custom_sync_async_decorator( - func, _wrapping_logic # type: ignore[arg-type] - ) + return _custom_sync_async_decorator(func, _wrapping_logic) return _decorator @@ -1040,9 +1036,7 @@ def tag_args(func: Callable[P, R]) -> Callable[P, R]: set_tag(SynapseTags.FUNC_KWARGS, str(kwargs)) yield - # type-ignore: mypy seems to be confused by the ParamSpecs here. - # I think the problem is https://github.com/python/mypy/issues/12909 - return _custom_sync_async_decorator(func, _wrapping_logic) # type: ignore[arg-type] + return _custom_sync_async_decorator(func, _wrapping_logic) @contextlib.contextmanager |