mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Merge branch 'develop' into feature/project-cli
This commit is contained in:
commit
5d235fb767
|
@ -8,7 +8,7 @@ murmurhash>=0.28.0,<1.1.0
|
|||
wasabi>=0.7.0,<1.1.0
|
||||
srsly>=2.1.0,<3.0.0
|
||||
catalogue>=0.0.7,<1.1.0
|
||||
typer>=0.2.1,<1.0.0
|
||||
typer>=0.3.0,<1.0.0
|
||||
# Third party dependencies
|
||||
numpy>=1.15.0
|
||||
requests>=2.13.0,<3.0.0
|
||||
|
|
|
@ -47,7 +47,7 @@ install_requires =
|
|||
wasabi>=0.7.0,<1.1.0
|
||||
srsly>=2.1.0,<3.0.0
|
||||
catalogue>=0.0.7,<1.1.0
|
||||
typer>=0.2.1,<1.0.0
|
||||
typer>=0.3.0,<1.0.0
|
||||
# Third-party dependencies
|
||||
tqdm>=4.38.0,<5.0.0
|
||||
numpy>=1.15.0
|
||||
|
|
|
@ -13,16 +13,10 @@ DOCS: https://spacy.io/api/cli
|
|||
|
||||
app = typer.Typer(name=NAME, help=HELP)
|
||||
|
||||
|
||||
def Arg(*args, help: Optional[str] = None, **kwargs) -> typer.Argument:
|
||||
"""Wrapper for Typer's annotation to keep it short and set defaults."""
|
||||
# Filter out help for now until it's officially supported
|
||||
return typer.Argument(*args, **kwargs)
|
||||
|
||||
|
||||
def Opt(*args, **kwargs) -> typer.Option:
|
||||
"""Wrapper for Typer's annotation to keep it short and set defaults."""
|
||||
return typer.Option(*args, show_default=True, **kwargs)
|
||||
# Wrappers for Typer's annotations. Initially created to set defaults and to
|
||||
# keep the names short, but not needed at the moment.
|
||||
Arg = typer.Argument
|
||||
Opt = typer.Option
|
||||
|
||||
|
||||
def setup_cli() -> None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user