Skip to content

Commit 4d88e6b

Browse files
committed
Silence mypy errors in 'fixtures_return_annotation.py'
1 parent 1c18e59 commit 4d88e6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/python/fixtures_return_annotation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# mypy: allow-untyped-defs
12
from __future__ import annotations
23

34
from collections.abc import Callable
@@ -55,7 +56,7 @@ def enum_return() -> ExitCode:
5556
assert get_return_annotation(enum_return) == "ExitCode"
5657

5758
def test_with_arg_annotations(self):
58-
def with_args(a: Callable[[], None], b: list) -> range:
59+
def with_args(a: Callable[[], None], b: str) -> range:
5960
return range(2)
6061

6162
assert get_return_annotation(with_args) == "range"

0 commit comments

Comments
 (0)