Skip to content

Commit

Permalink
Merge pull request #214 from ionite34/type-hints
Browse files Browse the repository at this point in the history
Add return type annotations to API

#214
  • Loading branch information
pavdmyt authored Oct 11, 2022
2 parents 5692862 + 8ae7b2c commit 77ba3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yaspin/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .signal_handlers import default_handler


def yaspin(*args, **kwargs):
def yaspin(*args, **kwargs) -> Yaspin:
"""Display spinner in stdout.
Can be used as a context manager or as a function decorator.
Expand Down Expand Up @@ -78,7 +78,7 @@ def foo():
return Yaspin(*args, **kwargs)


def kbi_safe_yaspin(*args, **kwargs):
def kbi_safe_yaspin(*args, **kwargs) -> Yaspin:
kwargs["sigmap"] = {signal.SIGINT: default_handler}
return Yaspin(*args, **kwargs)

Expand Down

0 comments on commit 77ba3e3

Please sign in to comment.