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

Method flat

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

Source from the content-addressed store, hash-verified

114 return '%s(%r, %r)' % (self.__class__.__name__, self.name, self.value)
115
116 def flat(self, *types):
117 return [self] if not types or type(self) in types else []
118
119 def match(self, left, collected=None):
120 collected = [] if collected is None else collected

Callers 4

fix_identitiesMethod · 0.45
flatMethod · 0.45
docoptFunction · 0.45
test_pattern_flatFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_pattern_flatFunction · 0.36