tantale / deprecated

Python @deprecated decorator to deprecate old python classes, functions or methods.
MIT License
298 stars 32 forks source link

deprecated is becoming an official decorator #70

Open 12rambau opened 4 months ago

12rambau commented 4 months ago

I just wanted to notify you that PEP-702 introduces support for an official @deprecated() decorator (https://peps.python.org/pep-0702/).

Are you planning on relying on it for the deprecated decorator ?

bswck commented 3 months ago

In other words, the @deprecated decorator is now officially deprecated.

12rambau commented 3 months ago

no not exactly as the deprecated decorator they introduced is not setting the version reason and is not compatible with Sphinx which to me are 2 huge downgrades. It goes without saying that versionadded and versionmodified remain completely not deprecated.

dimaqq commented 4 weeks ago

I'm in the market for @deprecated backport, but it has to have same (or compatible) signature to the upcoming Py 3.13 version.