diff --git a/pyproject.toml b/pyproject.toml index 758208691..5f60d4351 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -223,7 +223,7 @@ disable = ["R0801"] extend-exclude = ["tests/profiles/syntax_error.py"] [tool.ruff.lint] -extend-select = ["TID251", "UP006", "UP007", "UP017", "UP035", "RUF100"] +extend-select = ["TID251", "UP006", "UP007", "UP017", "UP035", "RUF100", "B010"] [tool.ruff.lint.flake8-tidy-imports.banned-api] unittest = { msg = "use pytest instead of unittest" } diff --git a/tests/unit/utils/test_responses.py b/tests/unit/utils/test_responses.py index 0f9d81632..54ae158aa 100644 --- a/tests/unit/utils/test_responses.py +++ b/tests/unit/utils/test_responses.py @@ -61,7 +61,7 @@ def __init__( content: Any = None, ) -> None: # Use setattr to avoid conflict with built-in 'type' - setattr(self, "type", item_type) + self.type = item_type self.role = role self.content = content