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

Method find

invoke/loader.py:34–47  ·  view source on GitHub ↗

Implementation-specific finder method seeking collection ``name``. Must return a ModuleSpec valid for use by `importlib`, which is typically a name string followed by the contents of the 3-tuple returned by `importlib.util.module_from_spec` (``name``, ``loader``,

(self, name: str)

Source from the content-addressed store, hash-verified

32 self.config = config
33
34 def find(self, name: str) -> Optional[ModuleSpec]:
35 """
36 Implementation-specific finder method seeking collection ``name``.
37
38 Must return a ModuleSpec valid for use by `importlib`, which is
39 typically a name string followed by the contents of the 3-tuple
40 returned by `importlib.util.module_from_spec` (``name``, ``loader``,
41 ``origin``.)
42
43 For a sample implementation, see `.FilesystemLoader`.
44
45 .. versionadded:: 1.0
46 """
47 raise NotImplementedError
48
49 def load(self, name: Optional[str] = None) -> Tuple[ModuleType, str]:
50 """

Callers 1

loadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected