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

Commit

Permalink
Fix-up unused ignores.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Sep 11, 2023
1 parent 567e325 commit 814dc03
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions synapse/logging/opentracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,10 +991,8 @@ def _decorator(func: Callable[P, R]) -> Callable[P, R]:
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]
func, _wrapping_logic
)

return _decorator
Expand Down Expand Up @@ -1040,9 +1038,7 @@ def _wrapping_logic(
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
Expand Down

0 comments on commit 814dc03

Please sign in to comment.