perf: 用 autoflake 删除无用依赖

没想到居然能意外地大幅提升启动速度
This commit is contained in:
2026-04-22 06:44:59 +08:00
parent 093034828b
commit b9d88383f9
38 changed files with 184 additions and 703 deletions
@@ -1,6 +1,5 @@
from typing import Iterable
from textual.app import ComposeResult
from textual.widget import Widget
import heurams.kernel.particles as pt
@@ -2,8 +2,7 @@ import copy
import random
from typing import TypedDict
from textual.containers import Container, ScrollableContainer
from textual.message import Message
from textual.containers import ScrollableContainer
from textual.widget import Widget
from textual.widgets import Button, Label, Markdown
+1 -1
View File
@@ -1,7 +1,7 @@
# 单项选择题
from typing import TypedDict
from textual.containers import Container, ScrollableContainer
from textual.containers import ScrollableContainer
from textual.widget import Widget
from textual.widgets import Button, Label
@@ -2,8 +2,6 @@ import re
from typing import Dict, List, TypedDict
from textual.containers import Center
from textual.message import Message
from textual.reactive import reactive
from textual.widget import Widget
from textual.widgets import Button, Label, Markdown, Static