diff --git a/openhexa/sdk/pipelines/parameter.py b/openhexa/sdk/pipelines/parameter.py index d4faf7e5..175c4b31 100644 --- a/openhexa/sdk/pipelines/parameter.py +++ b/openhexa/sdk/pipelines/parameter.py @@ -445,6 +445,7 @@ def __init__( | S3Connection | CustomConnection | Dataset + | File ], name: str | None = None, choices: typing.Sequence | None = None, @@ -628,6 +629,7 @@ def parameter( | S3Connection | CustomConnection | Dataset + | File ], name: str | None = None, choices: typing.Sequence | None = None, @@ -647,7 +649,7 @@ def parameter( ---------- code : str The parameter identifier (must be unique for a given pipeline) - type : {str, int, bool, float, DHIS2Connection, IASOConnection, PostgreSQLConnection, GCSConnection, S3Connection} + type : {str, int, bool, float, DHIS2Connection, IASOConnection, PostgreSQLConnection, GCSConnection, S3Connection, CustomConnection, Dataset, File} The parameter Python type name : str, optional A name for the parameter (will be used instead of the code in the web interface) @@ -668,7 +670,7 @@ def parameter( Whether this parameter should be provided multiple values (if True, the value must be provided as a list of values of the chosen type) directory : str, optional - An optional parameter to force file selection to specific directory (only used for parater type File). If the directory does not exist, it will be ignored. + An optional parameter to force file selection to specific directory (only used for parameter type File). If the directory does not exist, it will be ignored. Returns ------- diff --git a/pyproject.toml b/pyproject.toml index 2d6e76b4..61374293 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ requires-python = ">=3.11,<3.15" # the main constraint for supported Python vers dependencies = [ "urllib3<3", "multiprocess~=0.70.15", - "requests>=2.31,<2.33", + "requests>=2.31,<2.34", "PyYAML~=6.0", "click~=8.1.3", "jinja2>3,<4",