Skip to content

Commit 317c7fa

Browse files
authored
Burn down another 100 mypy errors in test_ssl.py (#1403)
1 parent 7c771de commit 317c7fa

File tree

3 files changed

+120
-85
lines changed

3 files changed

+120
-85
lines changed

Diff for: pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ ignore_missing_imports = true
3232
module = "cffi.*"
3333
ignore_missing_imports = true
3434

35+
[[tool.mypy.overrides]]
36+
module = ["pretend"]
37+
ignore_missing_imports = true
38+
3539
[tool.pytest.ini_options]
3640
addopts = "-r s --strict-markers"
3741
testpaths = ["tests"]

Diff for: src/OpenSSL/SSL.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ def set_session_id(self, buf: bytes) -> None:
12721272
== 1
12731273
)
12741274

1275-
def set_session_cache_mode(self, mode: int) -> None:
1275+
def set_session_cache_mode(self, mode: int) -> int:
12761276
"""
12771277
Set the behavior of the session cache used by all connections using
12781278
this Context. The previously set mode is returned. See

0 commit comments

Comments
 (0)