MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / issubset

Method issubset

asyncpg/types.py:156–162  ·  view source on GitHub ↗
(self, other: Self)

Source from the content-addressed store, hash-verified

154 )
155
156 def issubset(self, other: Self) -> bool:
157 if self._empty:
158 return True
159 if other._empty:
160 return False
161
162 return self._issubset_lower(other) and self._issubset_upper(other)
163
164 def issuperset(self, other: Self) -> bool:
165 return other.issubset(self)

Callers 2

test_range_issubsetMethod · 0.80
issupersetMethod · 0.80

Calls 2

_issubset_lowerMethod · 0.95
_issubset_upperMethod · 0.95

Tested by 1

test_range_issubsetMethod · 0.64