Skip to content

Commit 664cc38

Browse files
fsecada01claude
andcommitted
fix(ci): suppress ty invalid-method-override as warning
Django CBV and Channels consumer patterns intentionally narrow method signatures (SingleComponentView.post drops name param, ComponentConsumer .disconnect renames code → close_code). These are valid Liskov violations in Django's design. ty upgraded to error-level on these in a recent release, breaking CI since the litestar deps pulled a newer ty. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 83b833f commit 664cc38

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ unresolved-attribute = "warn"
9191
not-iterable = "warn"
9292
# Cooperative inheritance call-non-callable false positive (save_instance via hasattr guard).
9393
call-non-callable = "warn"
94+
# Django adapter intentionally narrows method signatures (SingleComponentView.post
95+
# drops the `name` param, ComponentConsumer.disconnect renames `code` → `close_code`).
96+
# These are valid Liskov violations in Django's CBV/consumer patterns.
97+
invalid-method-override = "warn"
9498

9599
[tool.ruff]
96100
line-length = 100

0 commit comments

Comments
 (0)