Skip to content

Commit

Permalink
Merge branch '290-apidocs' into sphinx-autodoc-typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
tpvasconcelos committed Dec 23, 2024
2 parents 91b51cf + c9f41d9 commit 336022e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ridgeplot/_vendor/_typeis.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def typeis(obj: Any, tp: _T) -> TypeIs[_T]:
Returns
-------
bool: Whether the object is of the given type.
bool
Whether the object is of the given type.
"""
if tp in _typeguard_registry:
return _typeguard_registry[tp](obj)
Expand All @@ -71,7 +72,9 @@ def register_typeis(tp: _T) -> Callable[[TypeGuardFunc[_T]], TypeGuardFunc[_T]]:
Returns
-------
A decorator that registers the given type guard function for the given type.
Callable[[TypeGuardFunc[_T]], TypeGuardFunc[_T]]
A decorator that registers the given type guard function for the given
type.
"""

def decorator(func: TypeGuardFunc[_T]) -> TypeGuardFunc[_T]:
Expand Down

0 comments on commit 336022e

Please sign in to comment.