mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 00:03:16 +00:00
Add missing auto_attribs=True to the _WrappedRustReporter class (#11768)
This commit is contained in:
1 parent
15ffc4143c
commit
7ad7a47e5a
2 files changed
+2
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
Use `auto_attribs` and native type hints for attrs classes.
|
||||
@@ -247,7 +247,7 @@ try:
|
||||
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."""
|
||||
|
||||
|
||||
Reference in new issue
Block a user