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

Commit

Permalink
Add missing auto_attribs=True to the _WrappedRustReporter class (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Jan 19, 2022
1 parent 15ffc41 commit 7ad7a47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/11768.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use `auto_attribs` and native type hints for attrs classes.
2 changes: 1 addition & 1 deletion synapse/logging/opentracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class _DummyTagNames:
class BaseReporter: # type: ignore[no-redef]
pass

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

Expand Down

0 comments on commit 7ad7a47

Please sign in to comment.