diff --git a/anta/reporter/__init__.py b/anta/reporter/__init__.py index 696a499a6..5156ea7e8 100644 --- a/anta/reporter/__init__.py +++ b/anta/reporter/__init__.py @@ -28,7 +28,7 @@ class ReportTable: """TableReport Generate a Table based on TestResult.""" - @dataclass() + @dataclass class Headers: # pylint: disable=too-many-instance-attributes """Headers for the table report.""" diff --git a/docs/templates/python/material/class.html.jinja b/docs/templates/python/material/class.html.jinja index cbf9fac22..e8e3de06c 100644 --- a/docs/templates/python/material/class.html.jinja +++ b/docs/templates/python/material/class.html.jinja @@ -59,7 +59,7 @@ {{ super() }} {% for dec in class.decorators %} -{% if dec.value.function.name == "deprecated_test_class" %} +{% if dec.value.function is defined and dec.value.function.name == "deprecated_test_class" %} Static Badge {% for arg in dec.value.arguments | selectattr("name", "equalto", "removal_in_version") | list %} Static Badge