Merge pull request #10123 from nicoddemus/fix-mypy-pre-commit
Fix mypy pre-commit run
This commit is contained in:
commit
7b9f71d84f
|
@ -281,7 +281,9 @@ class AssertionRewritingHook(importlib.abc.MetaPathFinder, importlib.abc.Loader)
|
||||||
else:
|
else:
|
||||||
from importlib.resources.readers import FileReader
|
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(
|
def _write_pyc_fp(
|
||||||
|
|
Loading…
Reference in New Issue