pyrit.common.deprecation_message#
- deprecation_message(*, old_item: type | Callable[[...], Any] | str, new_item: type | Callable[[...], Any] | str, removed_in: str) str [source]#
Generate a deprecation message string.
- 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
- Returns:
A formatted deprecation message string