From: Ben Darnell Date: Thu, 27 Jul 2023 01:55:12 +0000 (-0400) Subject: lint: Update mypy X-Git-Tag: v6.4.0b1~19^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bfa66ac9572680004bda9321a78d097ab144a9f;p=thirdparty%2Ftornado.git lint: Update mypy --- diff --git a/requirements.txt b/requirements.txt index 43a9de7ba..7543b10f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/tornado/autoreload.py b/tornado/autoreload.py index a4522ecbc..c6a6e82da 100644 --- a/tornado/autoreload.py +++ b/tornado/autoreload.py @@ -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()