chore: disable ruff B009 globally to avoid conflict with mypy [misc]

This commit is contained in:
Kevin Turcios 2026-02-13 09:48:18 -05:00
parent f344789ebc
commit 6de75e7bab
2 changed files with 2 additions and 2 deletions

View file

@ -871,8 +871,7 @@ def resolve_transitive_type_deps(cls: type) -> list[type]:
import typing
try:
init_attr = "__init__"
init_method = getattr(cls, init_attr)
init_method = getattr(cls, "__init__")
hints = typing.get_type_hints(init_method)
except Exception:
return []

View file

@ -289,6 +289,7 @@ ignore = [
"SIM108", # Ternary operator suggestion
"F841", # Unused variable (often intentional)
"ANN202", # Missing return type for private functions
"B009", # getattr-with-constant - needed to avoid mypy [misc] on dunder access
]
[tool.ruff.lint.flake8-type-checking]