Documentation
The documentation states "The SSL context created above will only allow TLSv1.2 and later..." However, the example code sets the minimum version to TLS 1.3 (not 1.2 as stated).
I believe this line should be changed to:
>>> client_context.minimum_version = ssl.TLSVersion.TLSv1_2
I am happy to create a pull request, if that is helpful.
Linked PRs