Skip to content

Commit

Permalink
Code linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
geozeke committed Jan 14, 2025
1 parent 4b23427 commit bba1054
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/banip/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ def print_docstring(msg: str) -> None:
This function assumes the docstring is in a very specific format:
>>> msg = <three quotes>
>>> msg = \"\"\"
>>> First line (non-blank)
>>>
>>> Subsequent lines
>>> Subsequent lines
>>> Subsequent lines
>>> ...
>>> Can include empty lines after the first.
>>> <three quotes>
>>> \"\"\"
Parameters
----------
Expand All @@ -45,7 +45,7 @@ def print_docstring(msg: str) -> None:
lines = msg.split("\n")[1:]
spaces = 0
for c in lines[0]:
if c in ["\n", " "]:
if c in ["\n", " ", "\t"]:
spaces += 1
else:
break
Expand Down

0 comments on commit bba1054

Please sign in to comment.