Skip to content

Commit 1df6604

Browse files
authored
Can Player compatibility with interfaces that use additional configuration (hardbyte#1610)
* Update mf4.py * Format code with black * Update trc.py * Format code with black * Update ci.yml Remove pylint specs for directories and files that no longer exist. --------- Co-authored-by: MattWoodhead <[email protected]>
1 parent 9412513 commit 1df6604

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ jobs:
103103
pylint --rcfile=.pylintrc \
104104
can/**.py \
105105
can/io \
106-
setup.py \
107106
doc/conf.py \
108-
scripts/**.py \
109107
examples/**.py \
110108
can/interfaces/socketcan
111109

can/io/mf4.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ class MF4Reader(BinaryIOMessageReader):
272272
The MF4Reader only supports MF4 files that were recorded with python-can.
273273
"""
274274

275-
def __init__(self, file: Union[StringPathLike, BinaryIO]) -> None:
275+
def __init__(
276+
self,
277+
file: Union[StringPathLike, BinaryIO],
278+
**kwargs: Any,
279+
) -> None:
276280
"""
277281
:param file: a path-like object or as file-like object to read from
278282
If this is a file-like object, is has to be opened in

can/io/trc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import os
1212
from datetime import datetime, timedelta, timezone
1313
from enum import Enum
14-
from typing import Callable, Dict, Generator, List, Optional, TextIO, Union
14+
from typing import Any, Callable, Dict, Generator, List, Optional, TextIO, Union
1515

1616
from ..message import Message
1717
from ..typechecking import StringPathLike
@@ -49,6 +49,7 @@ class TRCReader(TextIOMessageReader):
4949
def __init__(
5050
self,
5151
file: Union[StringPathLike, TextIO],
52+
**kwargs: Any,
5253
) -> None:
5354
"""
5455
:param file: a path-like object or as file-like object to read from
@@ -265,6 +266,7 @@ def __init__(
265266
self,
266267
file: Union[StringPathLike, TextIO],
267268
channel: int = 1,
269+
**kwargs: Any,
268270
) -> None:
269271
"""
270272
:param file: a path-like object or as file-like object to write to

0 commit comments

Comments
 (0)