MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / DBAPISet

Class DBAPISet

pymysql/__init__.py:82–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82class DBAPISet(frozenset):
83 def __ne__(self, other):
84 if isinstance(other, set):
85 return frozenset.__ne__(self, other)
86 else:
87 return other not in self
88
89 def __eq__(self, other):
90 if isinstance(other, frozenset):
91 return frozenset.__eq__(self, other)
92 else:
93 return other in self
94
95 def __hash__(self):
96 return frozenset.__hash__(self)
97
98
99STRING = DBAPISet([FIELD_TYPE.ENUM, FIELD_TYPE.STRING, FIELD_TYPE.VAR_STRING])

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected