From: Bob Halley Date: Fri, 5 Dec 2025 23:57:20 +0000 (-0800) Subject: conform to abstract set class type for __contains__ X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=059cccfb3aefe98493763b4d43fac255ab5edcdf;p=thirdparty%2Fdnspython.git conform to abstract set class type for __contains__ --- diff --git a/dns/btree.py b/dns/btree.py index 12da9f56..eac80550 100644 --- a/dns/btree.py +++ b/dns/btree.py @@ -839,8 +839,8 @@ class BTreeSet(BTree, Generic[KT], MutableSet[KT]): super().__init__(t=t, original=original) self.in_order = in_order - def __contains__(self, key: Any) -> bool: - return self.get_element(key) is not None + def __contains__(self, x: object) -> bool: + return self.get_element(x) is not None def add(self, value: KT) -> None: elt = Member(value)