MCPcopy Index your code
hub / github.com/pyinvoke/invoke / fill_implicit_positionals

Method fill_implicit_positionals

invoke/tasks.py:177–188  ·  view source on GitHub ↗
(
        self, positional: Optional[Iterable[str]]
    )

Source from the content-addressed store, hash-verified

175 return sig.replace(parameters=params[1:])
176
177 def fill_implicit_positionals(
178 self, positional: Optional[Iterable[str]]
179 ) -> Iterable[str]:
180 # If positionals is None, everything lacking a default
181 # value will be automatically considered positional.
182 if positional is None:
183 positional = [
184 x.name
185 for x in self.argspec(self.body).parameters.values()
186 if x.default is inspect.Signature.empty
187 ]
188 return positional
189
190 def arg_opts(
191 self, name: str, default: str, taken_names: Set[str]

Callers 1

__init__Method · 0.95

Calls 1

argspecMethod · 0.95

Tested by

no test coverage detected