-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Improve typing of sysconfig.get_config_var(s)
#11454
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
Conversation
This comment has been minimized.
This comment has been minimized.
stdlib/sysconfig.pyi
Outdated
@@ -15,11 +16,15 @@ __all__ = [ | |||
"parse_config_h", | |||
] | |||
|
|||
@overload | |||
@deprecated("SO is deprecated, use EXT_SUFFIX") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sysconfig.py doesn't mention this, can you link to where it's indicated that "SO" is deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like support has been removed in Python 3.11
https://github.com/python/cpython/pull/91671/files#diff-d593bd299ba58e440ba411ffa0640ccd9d20d518b0cf2644ed4bdb75a82a3e70L670-L673
I'll add this to the deprecation comment now that I found the removal date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I only looked at the main branch.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
distutils.sysconfig.get_config_vars
update is relevant for setuptools (pypa/setuptools#4228). I've updatedget_config_var
and all duplicates of these method as well.