Skip to content

Commit d2c0f6a

Browse files
committed
fix: type of arg should be of type type
1 parent 825f209 commit d2c0f6a

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

openhexa/sdk/pipelines/parameter.py

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -387,16 +387,7 @@ def __init__(
387387
self,
388388
code: str,
389389
*,
390-
type: str
391-
| int
392-
| bool
393-
| S3Connection
394-
| CustomConnection
395-
| DHIS2Connection
396-
| IASOConnection
397-
| PostgreSQLConnection
398-
| GCSConnection
399-
| Dataset,
390+
type: type,
400391
name: str | None = None,
401392
choices: typing.Sequence | None = None,
402393
help: str | None = None,
@@ -562,17 +553,7 @@ def validate_parameters(parameters: list[Parameter]):
562553
def parameter(
563554
code: str,
564555
*,
565-
type: str
566-
| int
567-
| bool
568-
| float
569-
| DHIS2Connection
570-
| IASOConnection
571-
| PostgreSQLConnection
572-
| GCSConnection
573-
| S3Connection
574-
| CustomConnection
575-
| Dataset,
556+
type: type,
576557
name: str | None = None,
577558
choices: typing.Sequence | None = None,
578559
help: str | None = None,

0 commit comments

Comments
 (0)