|
1 | | -from typing import Any, List |
| 1 | +from typing import Any, Dict, List, Optional |
2 | 2 |
|
3 | 3 | import jsons |
4 | 4 |
|
@@ -71,7 +71,7 @@ def __init__( |
71 | 71 | after_component_link: int, |
72 | 72 | workflow_id: int, |
73 | 73 | component: dict, |
74 | | - blueprint_id: int | None = None, |
| 74 | + blueprint_id: Optional[int] = None, |
75 | 75 | ): |
76 | 76 | super().__init__( |
77 | 77 | self.query, |
@@ -464,12 +464,12 @@ class AddStaticModelComponent(RequestChain): |
464 | 464 | def __init__( |
465 | 465 | self, |
466 | 466 | workflow_id: int, |
467 | | - after_component_id: int | None = None, |
468 | | - after_component_link_id: int | None = None, |
469 | | - static_component_config: dict[str, Any] | None = None, |
470 | | - component_name: str | None = None, |
| 467 | + after_component_id: Optional[int] = None, |
| 468 | + after_component_link_id: Optional[int] = None, |
| 469 | + static_component_config: Optional[Dict[str, Any]] = None, |
| 470 | + component_name: Optional[str] = None, |
471 | 471 | auto_process: bool = False, |
472 | | - export_file: str | None = None, |
| 472 | + export_file: Optional[str] = None, |
473 | 473 | ): |
474 | 474 | if not export_file and auto_process: |
475 | 475 | raise IndicoInputError("Must provide export_file if auto_process is True.") |
|
0 commit comments