MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / _ensure

Method _ensure

SLiCAP/schematic/connectivity.py:32–34  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

30 self._p: dict[tuple, tuple] = {}
31
32 def _ensure(self, x):
33 if x not in self._p:
34 self._p[x] = x
35
36 def find(self, x) -> tuple:
37 self._ensure(x)

Callers 1

findMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected