mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add a new mypy whitelist for 'Any
generics' (#10845)
This commit is contained in:
parent
e2b3b3f060
commit
b842cabd4f
@ -151,6 +151,7 @@ show_error_context = true
|
||||
strict_optional = true
|
||||
warn_redundant_casts = true
|
||||
warn_unused_ignores = true
|
||||
disallow_any_generics = true
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = [
|
||||
@ -182,6 +183,30 @@ module = [
|
||||
]
|
||||
strict_optional = false
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = [
|
||||
"sphinx.application",
|
||||
"sphinx.builders.*",
|
||||
"sphinx.cmd.*",
|
||||
"sphinx.config",
|
||||
"sphinx.deprecation",
|
||||
"sphinx.domains.*",
|
||||
"sphinx.environment.*",
|
||||
"sphinx.events",
|
||||
"sphinx.ext.*",
|
||||
"sphinx.highlighting",
|
||||
"sphinx.jinja2glue",
|
||||
"sphinx.locale",
|
||||
"sphinx.pycode.*",
|
||||
"sphinx.registry",
|
||||
"sphinx.roles",
|
||||
"sphinx.search.*",
|
||||
"sphinx.testing.*",
|
||||
"sphinx.util.*",
|
||||
"sphinx.writers.*",
|
||||
]
|
||||
disallow_any_generics = false
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
filterwarnings = [
|
||||
"all",
|
||||
|
Loading…
Reference in New Issue
Block a user