pyrit.common.print_deprecation_message

pyrit.common.print_deprecation_message#

print_deprecation_message(*, old_item: type | Callable[[...], Any] | str, new_item: type | Callable[[...], Any] | str, removed_in: str) None[source]#

Emit a deprecation warning.

Parameters:
  • old_item – The deprecated class, function, or its string name

  • new_item – The replacement class, function, or its string name

  • removed_in – The version in which the deprecated item will be removed