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

Add missing auto_attribs=True to the _WrappedRustReporter class #11768

Merged
merged 2 commits into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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