Bring in mypy and fix some typing bits
This commit is contained in:
@@ -14,7 +14,7 @@ def main() -> int:
|
||||
|
||||
def _find_2020_pairs(
|
||||
inputs: typing.List[int],
|
||||
) -> typing.Generator[None, typing.Tuple[int, int], None]:
|
||||
) -> typing.Generator[typing.Tuple[int, ...], None, None]:
|
||||
found = []
|
||||
|
||||
for i, in0 in enumerate(inputs):
|
||||
@@ -30,7 +30,7 @@ def _find_2020_pairs(
|
||||
|
||||
def _find_2020_triplets(
|
||||
inputs: typing.List[int],
|
||||
) -> typing.Generator[None, typing.Tuple[int, int], None]:
|
||||
) -> typing.Generator[typing.Tuple[int, ...], None, None]:
|
||||
found = []
|
||||
|
||||
for i, in0 in enumerate(inputs):
|
||||
|
Reference in New Issue
Block a user