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

Commit ba48c56

Browse files
authored
Bump mypy from 1.4.1 to 1.5.1. (#16300)
1 parent 16ef6f1 commit ba48c56

File tree

4 files changed

+32
-48
lines changed

4 files changed

+32
-48
lines changed

changelog.d/16300.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump mypy from 1.4.1 to 1.5.1.

mypy.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ warn_unused_ignores = True
2323
# warn_return_any = True
2424
# no_implicit_reexport = True
2525
strict_equality = True
26-
strict_concatenate = True
2726

2827
# Run mypy type checking with the minimum supported Python version to catch new usage
2928
# that isn't backwards-compatible (types, overloads, etc).

poetry.lock

Lines changed: 29 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

synapse/logging/opentracing.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -991,11 +991,7 @@ def _decorator(func: Callable[P, R]) -> Callable[P, R]:
991991
if not opentracing:
992992
return func
993993

994-
# type-ignore: mypy seems to be confused by the ParamSpecs here.
995-
# I think the problem is https://github.com/python/mypy/issues/12909
996-
return _custom_sync_async_decorator(
997-
func, _wrapping_logic # type: ignore[arg-type]
998-
)
994+
return _custom_sync_async_decorator(func, _wrapping_logic)
999995

1000996
return _decorator
1001997

@@ -1040,9 +1036,7 @@ def _wrapping_logic(
10401036
set_tag(SynapseTags.FUNC_KWARGS, str(kwargs))
10411037
yield
10421038

1043-
# type-ignore: mypy seems to be confused by the ParamSpecs here.
1044-
# I think the problem is https://github.com/python/mypy/issues/12909
1045-
return _custom_sync_async_decorator(func, _wrapping_logic) # type: ignore[arg-type]
1039+
return _custom_sync_async_decorator(func, _wrapping_logic)
10461040

10471041

10481042
@contextlib.contextmanager

0 commit comments

Comments
 (0)