mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
improve typing of lib/galaxy/managers/tools.py.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import logging
|
||||
from typing import TYPE_CHECKING
|
||||
from uuid import uuid4
|
||||
|
||||
from sqlalchemy import sql
|
||||
@@ -11,6 +12,9 @@ from .executables import artifact_class
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from galaxy.managers.base import OrmFilterParsersType
|
||||
|
||||
|
||||
class DynamicToolManager(ModelManager):
|
||||
""" Manages dynamic tools stored in Galaxy's database.
|
||||
@@ -103,6 +107,7 @@ class DynamicToolManager(ModelManager):
|
||||
|
||||
|
||||
class ToolFilterMixin:
|
||||
orm_filter_parsers: "OrmFilterParsersType"
|
||||
|
||||
def create_tool_filter(self, attr, op, val):
|
||||
|
||||
|
||||
@@ -549,8 +549,6 @@ check_untyped_defs = False
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.managers.users]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.managers.tools]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.managers.ratable]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.tools.actions.upload]
|
||||
|
||||
Reference in New Issue
Block a user