MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / single_match

Method single_match

preprocessor/docopt.py:152–156  ·  view source on GitHub ↗
(self, left)

Source from the content-addressed store, hash-verified

150class Argument(LeafPattern):
151
152 def single_match(self, left):
153 for n, pattern in enumerate(left):
154 if type(pattern) is Argument:
155 return n, Argument(self.name, pattern.value)
156 return None, None
157
158 @classmethod
159 def parse(class_, source):

Callers

nothing calls this directly

Calls 1

ArgumentClass · 0.85

Tested by

no test coverage detected