Decorator Utilities (gwpy.utils.decorators)#

Decorators for GWpy.

Functions#

deprecated_function([func, message])

Add a DeprecationWarning to a function.

no_type_check(arg)

Decorator to indicate that annotations are not type hints.

return_as(returntype)

Decorate a function to cast the return as the given type.

wraps(wrapped[, assigned, updated])

Decorator factory to apply update_wrapper() to a wrapper function

Classes#

deprecated_property(fget[, fset, fdel, doc])

Sub-class of property that invokes DeprecationWarning on every call.

Variables#

DEPRECATED_FUNCTION_WARNING

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

TYPE_CHECKING

Returns True when the argument is true, False otherwise.

annotations