diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9633398e3..686a5d77b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,9 +103,7 @@ jobs: pylint --rcfile=.pylintrc \ can/**.py \ can/io \ - setup.py \ doc/conf.py \ - scripts/**.py \ examples/**.py \ can/interfaces/socketcan diff --git a/can/io/mf4.py b/can/io/mf4.py index 215543e9f..c7e71e816 100644 --- a/can/io/mf4.py +++ b/can/io/mf4.py @@ -272,7 +272,11 @@ class MF4Reader(BinaryIOMessageReader): The MF4Reader only supports MF4 files that were recorded with python-can. """ - def __init__(self, file: Union[StringPathLike, BinaryIO]) -> None: + def __init__( + self, + file: Union[StringPathLike, BinaryIO], + **kwargs: Any, + ) -> None: """ :param file: a path-like object or as file-like object to read from If this is a file-like object, is has to be opened in diff --git a/can/io/trc.py b/can/io/trc.py index f116bdc04..ccf122d57 100644 --- a/can/io/trc.py +++ b/can/io/trc.py @@ -11,7 +11,7 @@ import os from datetime import datetime, timedelta, timezone from enum import Enum -from typing import Callable, Dict, Generator, List, Optional, TextIO, Union +from typing import Any, Callable, Dict, Generator, List, Optional, TextIO, Union from ..message import Message from ..typechecking import StringPathLike @@ -49,6 +49,7 @@ class TRCReader(TextIOMessageReader): def __init__( self, file: Union[StringPathLike, TextIO], + **kwargs: Any, ) -> None: """ :param file: a path-like object or as file-like object to read from @@ -265,6 +266,7 @@ def __init__( self, file: Union[StringPathLike, TextIO], channel: int = 1, + **kwargs: Any, ) -> None: """ :param file: a path-like object or as file-like object to write to