def numbersForBit(self, bit):
if bit >= self._n:<EOL><INDENT>raise IndexError("<STR_LIT>")<EOL><DEDENT>numbers = set()<EOL>for index, pattern in self._patterns.items():<EOL><INDENT>if bit in pattern:<EOL><INDENT>numbers.add(index)<EOL><DEDENT><DEDENT>return numbers<EOL>
Return the set of pattern numbers that match a bit.

@param bit (int) Index of bit

@return (set) Indices of numbers