From 8bfa66ac9572680004bda9321a78d097ab144a9f Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Wed, 26 Jul 2023 21:55:12 -0400 Subject: [PATCH] lint: Update mypy --- requirements.txt | 2 +- tornado/autoreload.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 43a9de7b..7543b10f 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 a4522ecb..c6a6e82d 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() -- GitLab