Deprecated module¶
Reference to the deprecated.py module.
deprecated
¶
Utilities for handling deprecated functionality within the Nextmv Python SDK.
This module provides tools to mark functions, methods, or features as deprecated, emitting appropriate warnings to users. These warnings inform users that the functionality will be removed in a future release and suggest alternative approaches.
The main purpose of this module is to help with the smooth transition when API changes are necessary, giving users time to update their code before functionality is removed completely.
NextmvDeprecationWarning
¶
deprecated
¶
Mark functionality as deprecated with a warning message.
This function emits a DeprecationWarning when called, indicating that the functionality will be removed in a future release.
| PARAMETER | DESCRIPTION |
|---|---|
|
The name of the function, method, or feature being deprecated.
TYPE:
|
|
The reason why the functionality is being deprecated, possibly with suggestions for alternative approaches.
TYPE:
|
Examples:
>>> def some_function():
... deprecated("feature_x", "Use feature_y instead")
... # function implementation