Skip to content

Commit

Permalink
style: fix overload and cli autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
jina-bot authored and JoanFM committed Dec 17, 2024
1 parent 777240a commit ecfb9a7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.10]
python-version: ["3.10"]
test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}}
steps:
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.10]
python-version: ["3.10"]
test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}}
steps:
- uses: actions/[email protected]
Expand Down
8 changes: 4 additions & 4 deletions jina/orchestrate/deployments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,15 @@ def __init__(
docker_kwargs: Optional[dict] = None,
entrypoint: Optional[str] = None,
env: Optional[dict] = None,
exit_on_exceptions: Optional[List[str]] = [],
exit_on_exceptions: Optional[List] = [],
external: Optional[bool] = False,
floating: Optional[bool] = False,
force_update: Optional[bool] = False,
gpus: Optional[str] = None,
grpc_channel_options: Optional[dict] = None,
grpc_metadata: Optional[dict] = None,
grpc_server_options: Optional[dict] = None,
host: Optional[List[str]] = ['0.0.0.0'],
host: Optional[List] = ['0.0.0.0'],
install_requirements: Optional[bool] = False,
log_config: Optional[str] = None,
metrics: Optional[bool] = False,
Expand All @@ -288,7 +288,7 @@ def __init__(
protocol: Optional[Union[str, List[str]]] = ['GRPC'],
provider: Optional[str] = ['NONE'],
provider_endpoint: Optional[str] = None,
py_modules: Optional[List[str]] = None,
py_modules: Optional[List] = None,
quiet: Optional[bool] = False,
quiet_error: Optional[bool] = False,
raft_configuration: Optional[dict] = None,
Expand Down Expand Up @@ -318,7 +318,7 @@ def __init__(
uses_requests: Optional[dict] = None,
uses_with: Optional[dict] = None,
uvicorn_kwargs: Optional[dict] = None,
volumes: Optional[List[str]] = None,
volumes: Optional[List] = None,
when: Optional[dict] = None,
workspace: Optional[str] = None,
**kwargs,
Expand Down
12 changes: 6 additions & 6 deletions jina/orchestrate/flow/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def __init__(
provider: Optional[str] = ['NONE'],
provider_endpoint: Optional[str] = None,
proxy: Optional[bool] = False,
py_modules: Optional[List[str]] = None,
py_modules: Optional[List] = None,
quiet: Optional[bool] = False,
quiet_error: Optional[bool] = False,
reload: Optional[bool] = False,
Expand Down Expand Up @@ -848,15 +848,15 @@ def add(
docker_kwargs: Optional[dict] = None,
entrypoint: Optional[str] = None,
env: Optional[dict] = None,
exit_on_exceptions: Optional[List[str]] = [],
exit_on_exceptions: Optional[List] = [],
external: Optional[bool] = False,
floating: Optional[bool] = False,
force_update: Optional[bool] = False,
gpus: Optional[str] = None,
grpc_channel_options: Optional[dict] = None,
grpc_metadata: Optional[dict] = None,
grpc_server_options: Optional[dict] = None,
host: Optional[List[str]] = ['0.0.0.0'],
host: Optional[List] = ['0.0.0.0'],
install_requirements: Optional[bool] = False,
log_config: Optional[str] = None,
metrics: Optional[bool] = False,
Expand All @@ -874,7 +874,7 @@ def add(
protocol: Optional[Union[str, List[str]]] = ['GRPC'],
provider: Optional[str] = ['NONE'],
provider_endpoint: Optional[str] = None,
py_modules: Optional[List[str]] = None,
py_modules: Optional[List] = None,
quiet: Optional[bool] = False,
quiet_error: Optional[bool] = False,
raft_configuration: Optional[dict] = None,
Expand Down Expand Up @@ -904,7 +904,7 @@ def add(
uses_requests: Optional[dict] = None,
uses_with: Optional[dict] = None,
uvicorn_kwargs: Optional[dict] = None,
volumes: Optional[List[str]] = None,
volumes: Optional[List] = None,
when: Optional[dict] = None,
workspace: Optional[str] = None,
**kwargs,
Expand Down Expand Up @@ -1336,7 +1336,7 @@ def config_gateway(
provider: Optional[str] = ['NONE'],
provider_endpoint: Optional[str] = None,
proxy: Optional[bool] = False,
py_modules: Optional[List[str]] = None,
py_modules: Optional[List] = None,
quiet: Optional[bool] = False,
quiet_error: Optional[bool] = False,
reload: Optional[bool] = False,
Expand Down
8 changes: 4 additions & 4 deletions jina/serve/executors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,15 +1002,15 @@ def serve(
docker_kwargs: Optional[dict] = None,
entrypoint: Optional[str] = None,
env: Optional[dict] = None,
exit_on_exceptions: Optional[List[str]] = [],
exit_on_exceptions: Optional[List] = [],
external: Optional[bool] = False,
floating: Optional[bool] = False,
force_update: Optional[bool] = False,
gpus: Optional[str] = None,
grpc_channel_options: Optional[dict] = None,
grpc_metadata: Optional[dict] = None,
grpc_server_options: Optional[dict] = None,
host: Optional[List[str]] = ['0.0.0.0'],
host: Optional[List] = ['0.0.0.0'],
install_requirements: Optional[bool] = False,
log_config: Optional[str] = None,
metrics: Optional[bool] = False,
Expand All @@ -1028,7 +1028,7 @@ def serve(
protocol: Optional[Union[str, List[str]]] = ['GRPC'],
provider: Optional[str] = ['NONE'],
provider_endpoint: Optional[str] = None,
py_modules: Optional[List[str]] = None,
py_modules: Optional[List] = None,
quiet: Optional[bool] = False,
quiet_error: Optional[bool] = False,
raft_configuration: Optional[dict] = None,
Expand Down Expand Up @@ -1058,7 +1058,7 @@ def serve(
uses_requests: Optional[dict] = None,
uses_with: Optional[dict] = None,
uvicorn_kwargs: Optional[dict] = None,
volumes: Optional[List[str]] = None,
volumes: Optional[List] = None,
when: Optional[dict] = None,
workspace: Optional[str] = None,
**kwargs,
Expand Down

0 comments on commit ecfb9a7

Please sign in to comment.