Merge pull request #10123 from nicoddemus/fix-mypy-pre-commit

Fix mypy pre-commit run
This commit is contained in:
Anthony Sottile 2022-07-11 08:47:45 -04:00 committed by GitHub
commit 7b9f71d84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -281,7 +281,9 @@ class AssertionRewritingHook(importlib.abc.MetaPathFinder, importlib.abc.Loader)
else:
from importlib.resources.readers import FileReader
return FileReader(types.SimpleNamespace(path=self._rewritten_names[name]))
return FileReader( # type:ignore[no-any-return]
types.SimpleNamespace(path=self._rewritten_names[name])
)
def _write_pyc_fp(