Skip to content

Commit

Permalink
fix 'need type annotation' issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygoy committed Nov 9, 2023
1 parent 7b97a32 commit 8ff4c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screenpy/resolutions/contains_the_item.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Matches a list that contains the desired item."""

from typing import Sequence, TypeVar
from typing import Generic, Sequence, TypeVar

from hamcrest import has_item
from hamcrest.core.matcher import Matcher
Expand All @@ -11,7 +11,7 @@
T = TypeVar("T")


class ContainsTheItem:
class ContainsTheItem(Generic[T]):
"""Match an iterable containing a specific item.
Examples::
Expand Down

0 comments on commit 8ff4c3d

Please sign in to comment.