In Falcon 3.0.x, instantiating HTTPError or its subclasses with positional arguments (of course except the allowed ones) generates a DeprecatedWarning via the deprecated_args() decorator.
However, it is unclear from the warning which class/function was invoked, it just says "calls [with more than N] positional args are deprecated". Brought up by @laurent-chriqui (see the linked PR).
Ideally, as a developer, I would like the warning to read along the lines of
DeprecatedWarning: Calls to HTTPNotFound.__init__(...) with positional args are deprecated. Please specify them as keyword arguments instead.
In Falcon 3.0.x, instantiating
HTTPError
or its subclasses with positional arguments (of course except the allowed ones) generates aDeprecatedWarning
via thedeprecated_args()
decorator.However, it is unclear from the warning which class/function was invoked, it just says "calls [with more than N] positional args are deprecated". Brought up by @laurent-chriqui (see the linked PR).
Ideally, as a developer, I would like the warning to read along the lines of