Shortcuts

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.

Read the Docs v: v0.3.3
Versions
latest
stable
v0.3.3
v0.3.2
v0.3.1
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.