Skip to content

Commit a983726

Browse files
committed
PYTHON-2560 Fix HTTPSConnection typechecking
1 parent 5f01703 commit a983726

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/test_encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2875,7 +2875,7 @@ async def asyncSetUp(self):
28752875
async def http_post(self, path, data=None):
28762876
# Note, the connection to the mock server needs to be closed after
28772877
# each request because the server is single threaded.
2878-
ctx = get_ssl_context(
2878+
ctx: ssl.SSLContext = get_ssl_context(
28792879
CLIENT_PEM, # certfile
28802880
None, # passphrase
28812881
CA_PEM, # ca_certs

test/test_encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2857,7 +2857,7 @@ def setUp(self):
28572857
def http_post(self, path, data=None):
28582858
# Note, the connection to the mock server needs to be closed after
28592859
# each request because the server is single threaded.
2860-
ctx = get_ssl_context(
2860+
ctx: ssl.SSLContext = get_ssl_context(
28612861
CLIENT_PEM, # certfile
28622862
None, # passphrase
28632863
CA_PEM, # ca_certs

0 commit comments

Comments
 (0)