Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70d4bb2

Browse files
authored
Fix selfcheck with the latest version of types-typed-ast (#14883)
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`
1 parent e2e5d7f commit 70d4bb2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
-r mypy-requirements.txt
33
types-psutil
44
types-setuptools
5-
types-typed-ast>=1.5.8,<1.6.0
5+
types-typed-ast>=1.5.8.5,<1.6.0

mypy/fastparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ def translate_module_id(self, id: str) -> str:
844844
def visit_Module(self, mod: ast3.Module) -> MypyFile:
845845
self.type_ignores = {}
846846
for ti in mod.type_ignores:
847-
parsed = parse_type_ignore_tag(ti.tag) # type: ignore[attr-defined]
847+
parsed = parse_type_ignore_tag(ti.tag)
848848
if parsed is not None:
849849
self.type_ignores[ti.lineno] = parsed
850850
else:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ requires = [
1313
# the following is from build-requirements.txt
1414
"types-psutil",
1515
"types-setuptools",
16-
"types-typed-ast>=1.5.8,<1.6.0",
16+
"types-typed-ast>=1.5.8.5,<1.6.0",
1717
]
1818
build-backend = "setuptools.build_meta"
1919

0 commit comments

Comments
 (0)