Skip to content

Commit

Permalink
Fix selfcheck with the latest version of types-typed-ast (#14883)
Browse files Browse the repository at this point in the history
The latest version of `types-typed-ast` includes
python/typeshed@62a833c,
which means we now have an unused `type: ignore` comment, which causes
the selfcheck to fail with the latest version of `types-typed-ast`
  • Loading branch information
AlexWaygood committed Mar 12, 2023
1 parent e2e5d7f commit 70d4bb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion mypy/fastparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 70d4bb2

Please sign in to comment.