Skip to content

Commit

Permalink
Burn down another 100 mypy errors in test_ssl.py (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Jan 8, 2025
1 parent 7c771de commit 317c7fa
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 85 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ ignore_missing_imports = true
module = "cffi.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["pretend"]
ignore_missing_imports = true

[tool.pytest.ini_options]
addopts = "-r s --strict-markers"
testpaths = ["tests"]
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSSL/SSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ def set_session_id(self, buf: bytes) -> None:
== 1
)

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

0 comments on commit 317c7fa

Please sign in to comment.