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:
3 files changed
+9
-4
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user