Skip to content

Commit

Permalink
Furter refine type descriptions for galaxy-lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jul 3, 2017
1 parent 470d561 commit d25285c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cwltool/software_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
ways to adapt new packages managers and such as well.
"""

import argparse
import os
import string
from typing import (Any, Dict, List, Text)

try:
from galaxy.tools.deps.requirements import ToolRequirement, ToolRequirements
Expand Down Expand Up @@ -72,7 +74,7 @@ def build_job_script(self, builder, command):


def get_dependencies(builder):
# type: (Any) -> List[ToolRequirement]
# type: (Any) -> ToolRequirements
(software_requirement, _) = get_feature(builder, "SoftwareRequirement")
dependencies = [] # type: List[ToolRequirement]
if software_requirement and software_requirement.get("packages"):
Expand Down
2 changes: 1 addition & 1 deletion typeshed/2.7/galaxy/tools/deps/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ from .resolvers.tool_shed_packages import ToolShedPackageDependencyResolver as T
log = ... # type: Any
CONFIG_VAL_NOT_FOUND = ... # type: Any

def build_dependency_manager(config): ...
def build_dependency_manager(config: Any) -> DependencyManager: ...

class NullDependencyManager:
dependency_resolvers = ... # type: Any
Expand Down
6 changes: 3 additions & 3 deletions typeshed/2.7/galaxy/tools/deps/requirements.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class ToolRequirement:
version = ... # type: Any
specs = ... # type: Any
def __init__(self, name: Optional[Any] = ..., type: Optional[Any] = ..., version: Optional[Any] = ..., specs: Any = ...) -> None: ...
def to_dict(self) -> Dict[Any]: ...
def to_dict(self) -> Dict[str, Any]: ...
def copy(self): ...
@staticmethod
def from_dict(dict: Dict[Any]) -> ToolRequirement: ...
def from_dict(dict: Dict[str, Any]) -> ToolRequirement: ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __hash__(self): ...
Expand All @@ -31,7 +31,7 @@ class RequirementSpecification:
def short_name(self): ...
def to_dict(self): ...
@staticmethod
def from_dict(dict: Dict[Any]) -> ToolRequirements: ...
def from_dict(dict: Dict[str, Any]) -> ToolRequirements: ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __hash__(self): ...
Expand Down

0 comments on commit d25285c

Please sign in to comment.