Skip to content

Commit 62acfb1

Browse files
committed
Fix mypy's complaints
1 parent c14e0ce commit 62acfb1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

can/interfaces/vector/canlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
INFINITE: Optional[int]
2929
try:
3030
# Try builtin Python 3 Windows API
31-
from _winapi import WaitForSingleObject, INFINITE
31+
from _winapi import WaitForSingleObject, INFINITE # type: ignore
3232

3333
HAS_EVENTS = True
3434
except ImportError:

can/io/player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def decompress(
106106
return real_suffix, gzip.open(filename, mode)
107107

108108
def __iter__(self) -> typing.Generator[Message, None, None]:
109-
pass
109+
raise NotImplementedError()
110110

111111

112112
class MessageSync: # pylint: disable=too-few-public-methods

can/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def _fill_text(self, text, width, indent):
390390
return super()._fill_text(text, width, indent)
391391

392392

393-
def parse_args(args):
393+
def parse_args(args: List[str]) -> Tuple:
394394
# Parse command line arguments
395395
parser = argparse.ArgumentParser(
396396
"python -m can.viewer",

0 commit comments

Comments
 (0)