Skip to content

Commit 01b9b56

Browse files
authored
Add more type definitions for SSL module, check with mypy (#1313)
We want to ensure that from now on, any new public API comes with proper type definitions.
1 parent cdcb48b commit 01b9b56

File tree

2 files changed

+120
-78
lines changed

2 files changed

+120
-78
lines changed

pyproject.toml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,18 @@ source = [
1010
]
1111

1212
[tool.coverage.report]
13+
exclude_also = [
14+
"assert False",
15+
]
1316
show_missing = true
1417

1518
[tool.mypy]
1619
warn_unused_configs = true
1720
follow_imports = "skip"
1821
strict = true
19-
exclude = ['SSL\.py$']
20-
21-
[[tool.mypy.overrides]]
22-
module = "OpenSSL.crypto"
23-
warn_return_any = false
24-
disallow_any_expr = false
25-
26-
[[tool.mypy.overrides]]
27-
module = "OpenSSL.rand"
28-
warn_return_any = false
2922

3023
[[tool.mypy.overrides]]
31-
module = "OpenSSL._util"
24+
module = "OpenSSL.*"
3225
warn_return_any = false
3326

3427
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)