-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecated is becoming an official decorator #70
Comments
In other words, the |
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. |
I'm in the market for |
A backport exists: https://github.com/python/typing_extensions/blob/main/CHANGELOG.md#release-490-december-9-2023 diff --git a/pyproject.toml b/pyproject.toml
index cfb7ffd2..324c4c42 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -66,6 +66,7 @@ dependencies = [
"...",
+ "typing-extensions; python_version < '3.13'",
] and then if sys.version_info >= (3, 13):
from warnings import deprecated
else:
from typing_extensions import deprecated |
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 ?
The text was updated successfully, but these errors were encountered: