fix typing of deploy args
This commit is contained in:
parent
bb86a267b4
commit
6f66e10e1e
@ -28,7 +28,7 @@ repos:
|
|||||||
entry: python3 scripts/make_pyi.py
|
entry: python3 scripts/make_pyi.py
|
||||||
|
|
||||||
- repo: https://github.com/RobertCraigie/pyright-python
|
- repo: https://github.com/RobertCraigie/pyright-python
|
||||||
rev: v1.1.313
|
rev: v1.1.334
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyright
|
- id: pyright
|
||||||
args: [reflex, tests]
|
args: [reflex, tests]
|
||||||
|
@ -520,6 +520,9 @@ def deploy(
|
|||||||
_init(name=config.app_name, loglevel=loglevel)
|
_init(name=config.app_name, loglevel=loglevel)
|
||||||
prerequisites.check_latest_package_version(constants.ReflexHostingCLI.MODULE_NAME)
|
prerequisites.check_latest_package_version(constants.ReflexHostingCLI.MODULE_NAME)
|
||||||
|
|
||||||
|
extra: dict[str, str] = (
|
||||||
|
{"config_path": config_path} if config_path is not None else {}
|
||||||
|
)
|
||||||
hosting_cli.deploy(
|
hosting_cli.deploy(
|
||||||
app_name=app_name,
|
app_name=app_name,
|
||||||
export_fn=lambda zip_dest_dir,
|
export_fn=lambda zip_dest_dir,
|
||||||
@ -545,7 +548,7 @@ def deploy(
|
|||||||
loglevel=type(loglevel).INFO, # type: ignore
|
loglevel=type(loglevel).INFO, # type: ignore
|
||||||
token=token,
|
token=token,
|
||||||
project=project,
|
project=project,
|
||||||
config_path=config_path,
|
**extra,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user