You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.13 introduced a decorator called @warnings.deprecated that marks classes, functions and methods as deprecated. For older versions of Python, @deprecated.deprecated is available as an alternative.
Would you consider adding the functionality to warn of the use of objects marked as deprecated by these decorators? In other words, a feature like that provided by memestra.
The text was updated successfully, but these errors were encountered:
In general such a rule could be a great addition for library developers that want to do a quick check of expired deprecations before a release. Warning users of such functions would require multi-file analysis.
In practice, many libraries define their own deprecation decorator with additional functionality such as version and expiry information. My impression is that for popular packages it's more common to use a custom decorator than that to use the standard library (warnings) or a third-party (deprecated).
Python 3.13 introduced a decorator called
@warnings.deprecated
that marks classes, functions and methods as deprecated. For older versions of Python,@deprecated.deprecated
is available as an alternative.Would you consider adding the functionality to warn of the use of objects marked as deprecated by these decorators? In other words, a feature like that provided by memestra.
The text was updated successfully, but these errors were encountered: