Fix type hint for test_frozenbidicts_hashable

This commit is contained in:
Vasista Vovveti 2023-07-18 19:09:12 +05:30 committed by Joshua Bronson
parent d9ccaa7918
commit 3ded9f2ea5
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ from hypothesis import assume, example, given
from bidict import (
DROP_NEW, DROP_OLD, RAISE, OnDup,
BidirectionalMapping, MutableBidirectionalMapping, BidictBase, MutableBidict, OrderedBidictBase,
OrderedBidict, bidict, namedbidict,
OrderedBidict, bidict, namedbidict, frozenbidict,
inverted,
DuplicationError, KeyDuplicationError, ValueDuplicationError, KeyAndValueDuplicationError,
)
@ -351,7 +351,7 @@ def test_bidict_reversed(rb_and_rd: t.Any) -> None:
@given(st.FROZEN_BIDICTS)
def test_frozenbidicts_hashable(bi: Bi) -> None:
def test_frozenbidicts_hashable(bi: frozenbidict[t.Any, t.Any]) -> None:
"""Frozen bidicts can be hashed and inserted into sets and mappings."""
assert hash(bi)
assert {bi}