Helpers related to deprecation of functions, methods, classes, other functionality.
Function | became |
Undocumented |
Function | deprecated |
Decorates a function and issues a deprecation warning on use. |
Function | deprecated |
Undocumented |
Function | deprecated |
Decorates a function to warn on use of certain parameters. |
Function | moved |
Undocumented |
Function | warn |
Undocumented |
Function | warn |
Issue a deprecation warning with a parameterized string, limiting the number of registrations. |
Function | _decorate |
Undocumented |
Function | _decorate |
Wrap a function with a warnings.warn and augmented docstring. |
Function | _sanitize |
Undocumented |
Function | _warn |
Undocumented |
Type Variable | _F |
Undocumented |
Type Variable | _T |
Undocumented |
str
, alternative: Optional[ str]
= None, **kw: Any
) -> Callable[ [ _F], _F]
:
(source)
¶
Undocumented
str
, message: Optional[ str]
= None, add_deprecation_to_docstring: bool
= True, warning: Optional[ Type[ exc.SADeprecationWarning]]
= None, enable_warnings: bool
= True) -> Callable[ [ _F], _F]
:
(source)
¶
Decorates a function and issues a deprecation warning on use. :param version: Issue version in the warning. :param message: If provided, issue message in the warning. A sensible default is used if not provided. :param add_deprecation_to_docstring: Default True. If False, the wrapped function's __doc__ is left as-is. If True, the 'message' is prepended to the docs if provided, or sensible default if message is omitted.
str
, message: str
, constructor: Optional[ str]
= '__init__') -> Callable[ [ Type[ _T]], Type[ _T]]
:
(source)
¶
Undocumented
Decorates a function to warn on use of certain parameters. e.g. :: @deprecated_params( weak_identity_map=( "0.7", "the :paramref:`.Session.weak_identity_map parameter " "is deprecated." ) )
str
, **kw: Any
) -> Callable[ [ Callable[ ..., _T]], Callable[ ..., _T]]
:
(source)
¶
Undocumented
str
, version: str
, stacklevel: int
= 3, code: Optional[ str]
= None):
(source)
¶
Undocumented
str
, args: Sequence[ Any]
, version: str
, stacklevel: int
= 3, code: Optional[ str]
= None):
(source)
¶
Issue a deprecation warning with a parameterized string, limiting the number of registrations.
Type[ _T]
, constructor: Optional[ str]
, wtype: Type[ exc.SADeprecationWarning]
, message: str
, version: str
, docstring_header: Optional[ str]
= None) -> Type[ _T]
:
(source)
¶
Undocumented
_F
, wtype: Type[ exc.SADeprecationWarning]
, message: str
, version: str
, docstring_header: Optional[ str]
= None, enable_warnings: bool
= True) -> _F
:
(source)
¶
Wrap a function with a warnings.warn and augmented docstring.