Skip to content

Commit 2992f31

Browse files
Remove mypy overrides for tests/test_pycode/test_pycode_ast.py (#13586)
1 parent a94fcd9 commit 2992f31

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,6 @@ module = [
330330
"tests.test_extensions.test_ext_napoleon_docstring",
331331
# tests/test_intl
332332
"tests.test_intl.test_intl",
333-
# tests/test_pycode
334-
"tests.test_pycode.test_pycode_ast",
335333
# tests/test_transforms
336334
"tests.test_transforms.test_transforms_post_transforms",
337335
# tests/test_util

tests/test_pycode/test_pycode_ast.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@
6565
('*tuple[str, int]', '*tuple[str, int]'), # Starred
6666
],
6767
) # fmt: skip
68-
def test_unparse(source, expected):
69-
module = ast.parse(source)
70-
assert ast_unparse(module.body[0].value, source) == expected
68+
def test_unparse(source: str, expected: str) -> None:
69+
expr = ast.parse(source).body[0]
70+
assert isinstance(expr, ast.Expr)
71+
assert ast_unparse(expr.value, source) == expected
7172

7273

7374
def test_unparse_None() -> None:

0 commit comments

Comments
 (0)