mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Follow up from #19642. I'm trying to get all the Galaxy type annotations to only use Galaxy code.
23 lines
882 B
Python
23 lines
882 B
Python
from typing import TYPE_CHECKING
|
|
|
|
from galaxy.structured_app import BasicSharedApp
|
|
|
|
if TYPE_CHECKING:
|
|
from galaxy.tools.data import ToolDataTableManager
|
|
from tool_shed.managers.model_cache import ModelCache
|
|
from tool_shed.repository_registry import RegistryInterface
|
|
from tool_shed.repository_types.registry import Registry as RepositoryTypesRegistry
|
|
from tool_shed.util.hgweb_config import HgWebConfigManager
|
|
from tool_shed.webapp.model import mapping
|
|
from tool_shed.webapp.security import CommunityRBACAgent
|
|
|
|
|
|
class ToolShedApp(BasicSharedApp):
|
|
repository_types_registry: "RepositoryTypesRegistry"
|
|
model: "mapping.ToolShedModelMapping"
|
|
repository_registry: "RegistryInterface"
|
|
hgweb_config_manager: "HgWebConfigManager"
|
|
security_agent: "CommunityRBACAgent"
|
|
model_cache: "ModelCache"
|
|
tool_data_tables: "ToolDataTableManager"
|