Skip to content

Commit 3c35108

Browse files
committed
Add type definition to **options
1 parent c68f155 commit 3c35108

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

can/io/asc.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,7 @@ class ASCWriter(FileIOMessageWriter):
349349
FORMAT_EVENT = "{timestamp: 9.6f} {message}\n"
350350

351351
def __init__(
352-
self,
353-
file: Union[StringPathLike, TextIO],
354-
channel: int = 1,
355-
**options
352+
self, file: Union[StringPathLike, TextIO], channel: int = 1, **options: Any
356353
) -> None:
357354
"""
358355
:param file: a path-like object or as file-like object to write to

can/io/canutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
import logging
8-
from typing import Generator, TextIO, Union
8+
from typing import Generator, TextIO, Union, Any
99

1010
from can.message import Message
1111
from .generic import FileIOMessageWriter, MessageReader
@@ -132,7 +132,7 @@ def __init__(
132132
file: Union[StringPathLike, TextIO],
133133
channel: str = "vcan0",
134134
append: bool = False,
135-
**options,
135+
**options: Any,
136136
):
137137
"""
138138
:param file: a path-like object or as file-like object to write to

can/io/csv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
from base64 import b64encode, b64decode
13-
from typing import TextIO, Generator, Union
13+
from typing import TextIO, Generator, Union, Any
1414

1515
from can.message import Message
1616
from .generic import FileIOMessageWriter, MessageReader
@@ -87,7 +87,7 @@ class CSVWriter(FileIOMessageWriter):
8787
file: TextIO
8888

8989
def __init__(
90-
self, file: Union[StringPathLike, TextIO], append: bool = False, **options
90+
self, file: Union[StringPathLike, TextIO], append: bool = False, **options: Any
9191
) -> None:
9292
"""
9393
:param file: a path-like object or a file-like object to write to.

0 commit comments

Comments
 (0)