Skip to content

Commit

Permalink
Add more type definitions for SSL module, check with mypy (#1313)
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 Jul 7, 2024
1 parent cdcb48b commit 01b9b56
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 78 deletions.
15 changes: 4 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,18 @@ source = [
]

[tool.coverage.report]
exclude_also = [
"assert False",
]
show_missing = true

[tool.mypy]
warn_unused_configs = true
follow_imports = "skip"
strict = true
exclude = ['SSL\.py$']

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

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

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

[[tool.mypy.overrides]]
Expand Down
Loading

0 comments on commit 01b9b56

Please sign in to comment.