Skip to content

Commit

Permalink
format docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
zariiii9003 committed Oct 10, 2022
1 parent 1771c43 commit 4e08312
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions can/io/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ def __new__( # type: ignore
cls: Any, filename: Optional[StringPathLike], *args: Any, **kwargs: Any
) -> MessageWriter:
"""
:param filename: the filename/path of the file to write to,
may be a path-like object or None to
instantiate a :class:`~can.Printer`
:raises ValueError: if the filename's suffix is of an unknown file type
:param filename:
the filename/path of the file to write to,
may be a path-like object or None to
instantiate a :class:`~can.Printer`
:raises ValueError:
if the filename's suffix is of an unknown file type
"""
if filename is None:
return Printer(*args, **kwargs)
Expand Down

0 comments on commit 4e08312

Please sign in to comment.