Skip to content

Commit

Permalink
Update __main__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Jun 27, 2023
1 parent 6fa6445 commit 0dfeb8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/parse/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def snake_to_kebab(text: str) -> str:
return text.replace("_", "-")


def find_method_docstring(klass, method: str) -> str | None:
def find_method_docstring(klass, method: str) -> str:
"""Look through a class' ancestors for the first non-empty method docstring.
Since Python 3.5, inspect.getdoc is supposed to do exactly this. However, it doesn't seem to
Expand Down Expand Up @@ -95,7 +95,7 @@ def find_method_docstring(klass, method: str) -> str | None:
return doc


def find_method_signature(klass, method: str) -> inspect.Signature | None:
def find_method_signature(klass, method: str) -> inspect.Signature:
"""Look through a class' ancestors and fill out the methods signature.
A class method has a signature. But it might now always be complete. When a parameter is not
Expand Down

0 comments on commit 0dfeb8a

Please sign in to comment.