Skip to content

Commit

Permalink
Fixed failing typeguard tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Georacer committed Jan 6, 2024
1 parent c53def1 commit 96103aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/parasect/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def compare(
input_folder: Optional[str],
nocal: bool,
noop: bool,
component: int,
component: Optional[int],
) -> None:
"""Compare command."""
s = compare_helper(file_1, file_2, input_folder, nocal, noop, component)
Expand Down Expand Up @@ -109,11 +109,11 @@ def compare(
help="Specify the default parameters file to apply to all Meals.",
)
def build(
config: str,
config: Optional[str],
format: str,
input_folder: Optional[str],
default_parameters: str,
output_folder: str,
default_parameters: Optional[str],
output_folder: Optional[str],
) -> None:
"""Build command."""
build_helper(
Expand Down
2 changes: 1 addition & 1 deletion src/parasect/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ def build_param_from_mavproxy(item: Sequence) -> Parameter:
item should be a 3-length sequence of strings.
"""
name = item[0]
value: Union[int, float]
value: Union[int, float, str]
value = item[1]
try:
value = int(item[1])
Expand Down

0 comments on commit 96103aa

Please sign in to comment.