fix(dock): restore TYPE_CHECKING guards to break circular imports

animator.py and layout.py both circular-import from canvas.py.
Restore the TYPE_CHECKING blocks and suppress TC004 globally.
This commit is contained in:
sankalp committed 2026-07-12 19:20:24 +05:45
1 parent f4281e6aca
commit 07d35d8fdf
3 files changed
+9 -4

No files matched your search

+1
View File
@@ -85,6 +85,7 @@ ignore = [
"SIM115", # allow open without context handler
"SIM116", # allow if-else instead of dict lookup
"B018", # allow useless expression (standalone identifiers)
"TC004", # allow imports in TYPE_CHECKING block (circular import prevention)
]
[tool.ruff.lint.isort]