finesse.utilities.misc.deprecation_warning

finesse.utilities.misc.deprecation_warning(msg, until_version)[source]

Function that warns a user about a deprecation. If the current version is past when this feature is deprecated it will raise DeprecationWarning instead.

Parameters
msgstr

Message to warn user with.

until_versionstr

PEP 440 version string. After this version an exception is thrown.

Raises
DeprecationWarning

When current version is >= until_version