We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1693c27 commit 796b525Copy full SHA for 796b525
can/io/generic.py
@@ -82,7 +82,7 @@ class FileIOMessageWriter(MessageWriter, metaclass=ABCMeta):
82
83
file: can.typechecking.FileLike
84
85
- def __init__(self, file: can.typechecking.AcceptedIOType, mode: str = "rt") -> None:
+ def __init__(self, file: can.typechecking.AcceptedIOType, mode: str = "wt") -> None:
86
# Not possible with the type signature, but be verbose for user-friendliness
87
if file is None:
88
raise ValueError("The given file cannot be None")
0 commit comments