Skip to content

Commit 5adc2c5

Browse files
authored
more compatible
1 parent 1b4c460 commit 5adc2c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builder/frameworks/component_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import yaml
66
from yaml import SafeLoader
77
from os.path import join
8-
from typing import Set, Optional, Dict, Any, List
8+
from typing import Set, Optional, Dict, Any, List, Tuple
99

1010

1111
class ComponentManager:
@@ -633,7 +633,7 @@ def _add_components(self, component_data: Dict[str, Any], components_to_add: lis
633633
else:
634634
self._log_change(f"Component already exists: {component_name}")
635635

636-
def _parse_component_entry(self, entry: str) -> tuple[str, str]:
636+
def _parse_component_entry(self, entry: str) -> Tuple[str, str]:
637637
"""
638638
Parse component entry into name and version.
639639
@@ -721,13 +721,13 @@ def _remove_cpppath_entries(self) -> None:
721721
except Exception:
722722
pass
723723

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:
725725
"""
726726
Restore the original pioarduino-build.py from backup.
727727
728728
Args:
729+
target: Build target (unused)
729730
source: Build source (unused)
730-
target: Build target (unused)
731731
env: Environment (unused)
732732
"""
733733
build_py_path = join(self.arduino_libs_mcu, "pioarduino-build.py")

0 commit comments

Comments
 (0)