|
5 | 5 | import yaml
|
6 | 6 | from yaml import SafeLoader
|
7 | 7 | from os.path import join
|
8 |
| -from typing import Set, Optional, Dict, Any, List |
| 8 | +from typing import Set, Optional, Dict, Any, List, Tuple |
9 | 9 |
|
10 | 10 |
|
11 | 11 | class ComponentManager:
|
@@ -633,7 +633,7 @@ def _add_components(self, component_data: Dict[str, Any], components_to_add: lis
|
633 | 633 | else:
|
634 | 634 | self._log_change(f"Component already exists: {component_name}")
|
635 | 635 |
|
636 |
| - def _parse_component_entry(self, entry: str) -> tuple[str, str]: |
| 636 | + def _parse_component_entry(self, entry: str) -> Tuple[str, str]: |
637 | 637 | """
|
638 | 638 | Parse component entry into name and version.
|
639 | 639 |
|
@@ -721,13 +721,13 @@ def _remove_cpppath_entries(self) -> None:
|
721 | 721 | except Exception:
|
722 | 722 | pass
|
723 | 723 |
|
724 |
| - def restore_pioarduino_build_py(self, source=None, target=None, env=None) -> None: |
| 724 | + def restore_pioarduino_build_py(self, target=None, source=None, env=None) -> None: |
725 | 725 | """
|
726 | 726 | Restore the original pioarduino-build.py from backup.
|
727 | 727 |
|
728 | 728 | Args:
|
| 729 | + target: Build target (unused) |
729 | 730 | source: Build source (unused)
|
730 |
| - target: Build target (unused) |
731 | 731 | env: Environment (unused)
|
732 | 732 | """
|
733 | 733 | build_py_path = join(self.arduino_libs_mcu, "pioarduino-build.py")
|
|
0 commit comments