Skip to content

Commit e73778a

Browse files
authored
Merge pull request #1290 from tisnik/lcore-1434-fixed-linter-issue
LCORE-1434: fixed linter issue
2 parents d413f61 + 98e0fa0 commit e73778a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ disable = ["R0801"]
223223
extend-exclude = ["tests/profiles/syntax_error.py"]
224224

225225
[tool.ruff.lint]
226-
extend-select = ["TID251", "UP006", "UP007", "UP017", "UP035", "RUF100"]
226+
extend-select = ["TID251", "UP006", "UP007", "UP017", "UP035", "RUF100", "B010"]
227227

228228
[tool.ruff.lint.flake8-tidy-imports.banned-api]
229229
unittest = { msg = "use pytest instead of unittest" }

tests/unit/utils/test_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(
6161
content: Any = None,
6262
) -> None:
6363
# Use setattr to avoid conflict with built-in 'type'
64-
setattr(self, "type", item_type)
64+
self.type = item_type
6565
self.role = role
6666
self.content = content
6767

0 commit comments

Comments
 (0)