-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:DataBiosphere/toil into issues/45…
…10-ensure-sibling-files
- Loading branch information
Showing
46 changed files
with
1,151 additions
and
650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .configargparse import ArgParser as ArgParser | ||
from .configargparse import YAMLConfigFileParser as YAMLConfigFileParser | ||
from .configargparse import ArgumentParser as ArgumentParser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import argparse | ||
from typing import Sequence, Any, TypeVar, OrderedDict | ||
|
||
__all__ = [ | ||
"ArgumentParser", | ||
"YAMLConfigFileParser", | ||
"ConfigFileParser" | ||
] | ||
_N = TypeVar("_N") | ||
|
||
class ConfigFileParser(object): | ||
def get_syntax_description(self) -> Any: ... | ||
def parse(self, stream: Any) -> Any: ... | ||
def serialize(self, items: OrderedDict[Any, Any]) -> Any: ... | ||
|
||
class YAMLConfigFileParser(ConfigFileParser): | ||
def get_syntax_description(self) -> str: ... | ||
def parse(self, stream: Any) -> OrderedDict[Any, Any]: ... | ||
def serialize(self, items: OrderedDict[Any, Any], default_flow_style: bool = ...) -> Any: ... | ||
|
||
class ArgumentParser(argparse.ArgumentParser): | ||
@property | ||
def _config_file_parser(self) -> Any: ... | ||
|
||
def __init__(self, *args: Any, **kwargs: Any) -> None: ... | ||
# There may be a better way of type hinting this without a type: ignore, but mypy gets unhappy pretty much no matter what as the signatures for parse_args doesn't match with its superclass in argparse | ||
def parse_args(self, args: Sequence[str] | None = None, namespace: Namespace | None = None, config_file_contents: str | None = None, env_vars: Any=None) -> Namespace: ... # type: ignore[override] | ||
|
||
Namespace = argparse.Namespace | ||
ArgParser = ArgumentParser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.