Skip to content

Burn down another 100 mypy errors in test_ssl.py #1403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading