Merge pull request #146 from asottile/all-repos_autofix_mypy-settings

stricter mypy settings
This commit is contained in:
Anthony Sottile
2021-06-29 19:41:08 -05:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -115,8 +115,7 @@ class FileSyntax:
state = self._states[-1]
for i in range(len(self._states), idx):
# https://github.com/python/mypy/issues/8579
state, regions = self._hl(state, lines[i], i == 0) # type: ignore
state, regions = self._hl(state, lines[i], i == 0)
self._states.append(state)
self.regions.append(regions)

View File

@@ -53,6 +53,8 @@ disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[mypy-testing.*]
disallow_untyped_defs = false