mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
chore: disable ruff B009 globally to avoid conflict with mypy [misc]
This commit is contained in:
parent
f344789ebc
commit
6de75e7bab
2 changed files with 2 additions and 2 deletions
|
|
@ -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 []
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue