MCPcopy
hub / github.com/scrapy/scrapy / SequenceExclude

Class SequenceExclude

scrapy/utils/datatypes.py:189–196  ·  view source on GitHub ↗

Object to test if an item is NOT within some sequence.

Source from the content-addressed store, hash-verified

187
188
189class SequenceExclude:
190 """Object to test if an item is NOT within some sequence."""
191
192 def __init__(self, seq: Sequence[Any]):
193 self.seq: Sequence[Any] = seq
194
195 def __contains__(self, item: Any) -> bool:
196 return item not in self.seq

Callers 9

fetchMethod · 0.90
runMethod · 0.90
_handle_statusesMethod · 0.90
test_listMethod · 0.90
test_rangeMethod · 0.90
test_range_stepMethod · 0.90
test_string_seqMethod · 0.90
test_stringset_seqMethod · 0.90
test_setMethod · 0.90

Calls

no outgoing calls

Tested by 6

test_listMethod · 0.72
test_rangeMethod · 0.72
test_range_stepMethod · 0.72
test_string_seqMethod · 0.72
test_stringset_seqMethod · 0.72
test_setMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…