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)
| 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 | """ |