Fix mypy error at maths (#4613) · UnixJunkie/all-algorithms-python@d009cea · GitHub
Skip to content

Commit d009cea

Browse files
authored
Fix mypy error at maths (TheAlgorithms#4613)
* Fix mypy errors for maths/greedy_coin_change.py * Fix mypy errors for maths/two_sum.py * Fix mypy errors for maths/triplet_sum.py * Fix the format of maths/greedy_coin_change.py * Fix the format of maths/greedy_coin_change.py * Fix format with pre-commit
1 parent 032999f commit d009cea

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

maths/greedy_coin_change.py

Lines changed: 2 additions & 2 deletions

maths/triplet_sum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def make_dataset() -> tuple[list[int], int]:
1919
dataset = make_dataset()
2020

2121

22-
def triplet_sum1(arr: list[int], target: int) -> tuple[int, int, int]:
22+
def triplet_sum1(arr: list[int], target: int) -> tuple[int, ...]:
2323
"""
2424
Returns a triplet in the array with sum equal to target,
2525
else (0, 0, 0).

maths/two_sum.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)