hikari.internal.deprecation#
Deprecation utils.
Module Contents#
- hikari.internal.deprecation.check_if_past_removal(what, /, *, removal_version)[source]#
Check if a deprecation is passed its removal version.
- Parameters:
- what
str
What is being deprecated.
- what
- Other Parameters:
- removal_version
str
The version it will be removed in.
- removal_version
- Raises:
DeprecationWarning
If the deprecated item is past its removal version.
- hikari.internal.deprecation.warn_deprecated(what, /, *, removal_version, additional_info, stack_level=3, quote=True)[source]#
Issue a deprecation warning.
If the item is past its deprecation version, an error will be raised instead.
- Parameters:
- what
str
What is being deprecated.
- what
- Other Parameters:
- Raises:
DeprecationWarning
If the deprecated item is past its removal version.