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

Commit 7ad7a47

Browse files
Add missing auto_attribs=True to the _WrappedRustReporter class (#11768)
1 parent 15ffc41 commit 7ad7a47

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/11768.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use `auto_attribs` and native type hints for attrs classes.

synapse/logging/opentracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class _DummyTagNames:
247247
class BaseReporter: # type: ignore[no-redef]
248248
pass
249249

250-
@attr.s(slots=True, frozen=True)
250+
@attr.s(slots=True, frozen=True, auto_attribs=True)
251251
class _WrappedRustReporter(BaseReporter):
252252
"""Wrap the reporter to ensure `report_span` never throws."""
253253

0 commit comments

Comments
 (0)