Add missing auto_attribs=True to the _WrappedRustReporter class (#11768)

This commit is contained in:
Andrew Morgan 2022-01-19 12:39:11 +00:00 committed by GitHub
parent 15ffc4143c
commit 7ad7a47e5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/11768.misc Normal file
View file

@ -0,0 +1 @@
Use `auto_attribs` and native type hints for attrs classes.

View file

@ -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."""