summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/11768.misc1
-rw-r--r--synapse/logging/opentracing.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/11768.misc b/changelog.d/11768.misc
new file mode 100644
index 0000000000..1cac1f7446
--- /dev/null
+++ b/changelog.d/11768.misc
@@ -0,0 +1 @@
+Use `auto_attribs` and native type hints for attrs classes.
\ No newline at end of file
diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py
index 5672d60de3..b240d2d21d 100644
--- a/synapse/logging/opentracing.py
+++ b/synapse/logging/opentracing.py
@@ -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."""