MCPcopy Index your code
hub / github.com/clips/pattern / __contains__

Method __contains__

pattern/graph/__init__.py:296–297  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

294 dict.__init__(self, *args, **kwargs)
295 self.graph = graph
296 def __contains__(self, node):
297 return dict.__contains__(self, self.graph.get(node, node))
298 def __getitem__(self, node):
299 return dict.__getitem__(self, isinstance(node, Node) and node or self.graph[node])
300 def get(self, node, default=None):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected