MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _OrderedSet

Class _OrderedSet

lib/matplotlib/cbook.py:2179–2197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2177
2178
2179class _OrderedSet(collections.abc.MutableSet):
2180 def __init__(self):
2181 self._od = collections.OrderedDict()
2182
2183 def __contains__(self, key):
2184 return key in self._od
2185
2186 def __iter__(self):
2187 return iter(self._od)
2188
2189 def __len__(self):
2190 return len(self._od)
2191
2192 def add(self, key):
2193 self._od.pop(key, None)
2194 self._od[key] = None
2195
2196 def discard(self, key):
2197 self._od.pop(key, None)
2198
2199
2200# Agg's buffers are unmultiplied RGBA8888, which neither PyQt<=5.1 nor cairo

Callers 1

__clearMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…