Skip to content

fix(tui_v3): remove unused imports and fix duplicate dataclass import#530

Open
Kailigithub wants to merge 1 commit into
lsdefine:mainfrom
Kailigithub:fix/tui-v3-unused-imports
Open

fix(tui_v3): remove unused imports and fix duplicate dataclass import#530
Kailigithub wants to merge 1 commit into
lsdefine:mainfrom
Kailigithub:fix/tui-v3-unused-imports

Conversation

@Kailigithub
Copy link
Copy Markdown
Contributor

清理 tui_v3.py 中未使用的导入

修改范围

  • 移除 selectsignal(未在 tui_v3.py 中使用)
  • 移除重复的 from dataclasses import dataclass(已包含在 dataclass, field 导入中)
  • 移除未使用的 functools.lru_cachetyping.Callable 导入
  • 修复双重空行格式问题

验证

  • Python 语法检查通过 (python3 -m py_compile)
  • ruff F401 检查通过
  • 修改范围精准,无功能性变更

影响

降低模块加载时的内存开销,提升代码可维护性。

- Remove `select` and `signal` from the multi-import line (not used in tui_v3.py)
- Remove duplicate `from dataclasses import dataclass` (already covered by the field import)
- Remove unused `functools.lru_cache` and `typing.Callable` imports
- Fix double blank line formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant