Skip to content

Commit

Permalink
Avoid PytestReturnNotNoneWarning in test_inheriting_class (#9707)
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Dec 1, 2022
1 parent 945435b commit 23cbe9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dask/tests/test_typing.py
Expand Up @@ -210,5 +210,6 @@ def test_parameter_passing() -> None:
assert compute2(array).shape == (10,)


def test_inheriting_class() -> Inheriting:
return Inheriting(increment(2))
def test_inheriting_class() -> None:
inheriting: Inheriting = Inheriting(increment(2))
assert isinstance(inheriting, Inheriting)

0 comments on commit 23cbe9a

Please sign in to comment.