Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions openhexa/sdk/pipelines/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ def __init__(
| S3Connection
| CustomConnection
| Dataset
| File
],
name: str | None = None,
choices: typing.Sequence | None = None,
Expand Down Expand Up @@ -628,6 +629,7 @@ def parameter(
| S3Connection
| CustomConnection
| Dataset
| File
],
name: str | None = None,
choices: typing.Sequence | None = None,
Expand All @@ -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)
Expand All @@ -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
-------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading