asteroid.utils.deprecation_utils module

exception asteroid.utils.deprecation_utils.VisibleDeprecationWarning[source]

Bases: UserWarning

Visible deprecation warning.

By default, python will not show deprecation warnings, so this class can be used when a very visible warning is helpful, for example because the usage is most likely a user bug.

class asteroid.utils.deprecation_utils.DeprecationMixin[source]

Bases: object

Deprecation mixin. Example to come

warn_deprecated()[source]
asteroid.utils.deprecation_utils.deprecate_func(func, old_name)[source]

Function to return DeprecationWarning when a deprecated function is called. Example to come.