Skip to content

Commit

Permalink
fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Sep 5, 2024
1 parent ae125c3 commit 343e0db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/monty/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def _get_line_ending(
"\r": Classic MacOS line ending.
Raises:
ValueError: If file is empty or line ending is unknown.
ValueError: If line ending is unknown.
Warns:
If file is empty, "\n" would be used as default.
"""
if isinstance(file, (str, Path)):
with open(file, "rb") as f:
Expand Down

0 comments on commit 343e0db

Please sign in to comment.