3fbe6c9be5
- 添加 vnpy_v4.4.0/ 目录到版本控制 - 删除嵌入的 .git 目录避免嵌套仓库 - 添加 README_SANGUO.md 说明来源和用途 - 更新 .gitignore 移除 vnpy_v4.4.0/ 忽略规则 上游代码信息: - 项目: VeighNa 量化交易平台 - 版本: 4.4.0 - 来源: https://github.com/vnpy/vnpy 用途: 版本参考、代码学习、差异对比、离线开发 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
711 B
Python
22 lines
711 B
Python
from abc import ABC
|
|
from pathlib import Path
|
|
from typing import TYPE_CHECKING
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
from .engine import BaseEngine
|
|
|
|
|
|
class BaseApp(ABC):
|
|
"""
|
|
Abstract class for app.
|
|
"""
|
|
|
|
app_name: str # Unique name used for creating engine and widget
|
|
app_module: str # App module string used in import_module
|
|
app_path: Path # Absolute path of app folder
|
|
display_name: str # Name for display on the menu.
|
|
engine_class: type["BaseEngine"] # App engine class
|
|
widget_name: str # Class name of app widget
|
|
icon_name: str # Icon file name of app widget
|