Skip to content

Conversation

@kkirsche
Copy link
Contributor

Fixes: #8632

https://github.com/python/cpython/blob/0ace820bec8892d621a4aadc1feb6c56e25560bf/Lib/ssl.py#L422-L439

❯ ipython
Python 3.10.6 (main, Aug  3 2022, 10:52:45) [Clang 13.1.6 (clang-1316.0.21.2.5)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.4.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from ssl import SSLContext

In [2]: type(SSLContext.__init__)
Out[2]: wrapper_descriptor

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit 2c7ac09 into python:master Aug 29, 2022
@kkirsche kkirsche deleted the sslcontext branch August 29, 2022 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ssl.SSLContext type hint shouldn't have an __init__ method, only __new__

3 participants