Skip to content

Commit

Permalink
Add more type definitions for SSL module, check with mypy
Browse files Browse the repository at this point in the history
We want to ensure that from now on, any new public API comes with proper
type definitions.
  • Loading branch information
jlaine committed Jun 28, 2024
1 parent b86914d commit 77f768d
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 70 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ show_missing = true
warn_unused_configs = true
follow_imports = "skip"
strict = true
exclude = ['SSL\.py$']

[[tool.mypy.overrides]]
module = "OpenSSL.crypto"
Expand All @@ -27,6 +26,10 @@ disallow_any_expr = false
module = "OpenSSL.rand"
warn_return_any = false

[[tool.mypy.overrides]]
module = "OpenSSL.SSL"
warn_return_any = false

[[tool.mypy.overrides]]
module = "OpenSSL._util"
warn_return_any = false
Expand Down
Loading

0 comments on commit 77f768d

Please sign in to comment.