提交 8bfa66ac 编写于 作者: B Ben Darnell

lint: Update mypy

上级 e6854eb7
......@@ -48,7 +48,7 @@ markupsafe==2.1.2
# via jinja2
mccabe==0.7.0
# via flake8
mypy==0.991
mypy==1.0.1
# via -r requirements.in
mypy-extensions==0.4.3
# via
......
......@@ -338,9 +338,7 @@ def main() -> None:
# no longer in sys.modules. Figure out where it is and watch it.
loader = pkgutil.get_loader(opts.module)
if loader is not None and isinstance(loader, importlib.abc.FileLoader):
# TODO: fix when we update typeshed
watch(loader.get_filename()) # type: ignore
watch(loader.get_filename())
if opts.until_success and not exit_status:
return
wait()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册