diff --git a/build-requirements.txt b/build-requirements.txt index 52c518d53bc2..0b1e6d43103a 100644 --- a/build-requirements.txt +++ b/build-requirements.txt @@ -2,4 +2,4 @@ -r mypy-requirements.txt types-psutil types-setuptools -types-typed-ast>=1.5.8,<1.6.0 +types-typed-ast>=1.5.8.5,<1.6.0 diff --git a/mypy/fastparse.py b/mypy/fastparse.py index cc2b47cd6034..6ff51e25ad5f 100644 --- a/mypy/fastparse.py +++ b/mypy/fastparse.py @@ -844,7 +844,7 @@ def translate_module_id(self, id: str) -> str: def visit_Module(self, mod: ast3.Module) -> MypyFile: self.type_ignores = {} for ti in mod.type_ignores: - parsed = parse_type_ignore_tag(ti.tag) # type: ignore[attr-defined] + parsed = parse_type_ignore_tag(ti.tag) if parsed is not None: self.type_ignores[ti.lineno] = parsed else: diff --git a/pyproject.toml b/pyproject.toml index 328b9bf159a1..20301bf64216 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ requires = [ # the following is from build-requirements.txt "types-psutil", "types-setuptools", - "types-typed-ast>=1.5.8,<1.6.0", + "types-typed-ast>=1.5.8.5,<1.6.0", ] build-backend = "setuptools.build_meta"