MCPcopy
hub / github.com/docopt/docopt / flat

Method flat

docopt.py:149–152  ·  view source on GitHub ↗
(self, *types)

Source from the content-addressed store, hash-verified

147 ', '.join(repr(a) for a in self.children))
148
149 def flat(self, *types):
150 if type(self) in types:
151 return [self]
152 return sum([c.flat(*types) for c in self.children], [])
153
154
155class Argument(ChildPattern):

Callers

nothing calls this directly

Calls 1

flatMethod · 0.45

Tested by

no test coverage detected