Skip to content

Commit 008ae61

Browse files
MattWoodheadzariiii9003
authored andcommitted
Can Player compatibility with interfaces that use additional configuration (#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 9266aa0 commit 008ae61

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
@@ -108,9 +108,7 @@ jobs:
108108
pylint --rcfile=.pylintrc \
109109
can/**.py \
110110
can/io \
111-
setup.py \
112111
doc/conf.py \
113-
scripts/**.py \
114112
examples/**.py \
115113
can/interfaces/socketcan
116114

can/io/mf4.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ class MF4Reader(MessageReader):
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
@@ -46,6 +46,7 @@ class TRCReader(MessageReader):
4646
def __init__(
4747
self,
4848
file: Union[StringPathLike, TextIO],
49+
**kwargs: Any,
4950
) -> None:
5051
"""
5152
:param file: a path-like object or as file-like object to read from
@@ -262,6 +263,7 @@ def __init__(
262263
self,
263264
file: Union[StringPathLike, TextIO],
264265
channel: int = 1,
266+
**kwargs: Any,
265267
) -> None:
266268
"""
267269
:param file: a path-like object or as file-like object to write to

0 commit comments

Comments
 (0)