pybmd.decorators.version_range#
- pybmd.decorators.version_range(min_version: str, max_version: str) Callable[source]#
Decorator for APIs available only in a specific version range.
This is useful for APIs that were added in one version and removed in a later version, typically because they were replaced or refactored.
- Parameters:
- Returns:
Decorator function
- Return type:
Example
>>> @version_range("18.0.0", "19.0.0") ... def old_api_method(self): ... '''This API only worked in DR 18.x''' ... pass