Skip to content

Commit d81dbab

Browse files
committed
Fix type annotations
1 parent 5a17ef6 commit d81dbab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

can/bridge.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from datetime import datetime
1414
from typing import (
1515
Iterator,
16+
List,
1617
)
1718

1819
import can
@@ -47,7 +48,7 @@ class UserError(Exception):
4748
pass
4849

4950

50-
def get_config_list(it: Iterator[str], separator: str, conf) -> None:
51+
def get_config_list(it: Iterator[str], separator: str, conf: list) -> None:
5152
while True:
5253
el = next(it)
5354
if el == separator:
@@ -57,7 +58,7 @@ def get_config_list(it: Iterator[str], separator: str, conf) -> None:
5758

5859

5960
def split_configurations(
60-
arg_list: list[str], separator: str = "--"
61+
arg_list: List[str], separator: str = "--"
6162
) -> (list, list, list):
6263
general = []
6364
conf_a = []

0 commit comments

Comments
 (0)