Skip to content

Commit

Permalink
Assert match object is not None, making linter happy (and if it None,…
Browse files Browse the repository at this point in the history
… something is very wrong)
  • Loading branch information
Julian Gilbey committed Jan 13, 2025
1 parent 988cc69 commit c53d48d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jupyter_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def get_docstring_indent(doc: str) -> str:
if re.match(r"\s*$", line):
continue
linematch = re.match(r"(\s*)\S", line)
assert linematch is not None
return linematch.group(1)
# If there was no content in the docstring beyond the initial line
return ""
Expand Down

0 comments on commit c53d48d

Please sign in to comment.