| 6 | |
| 7 | |
| 8 | class OptionalDependencyError(ImportError): |
| 9 | def __init__(self, backend: Backend, extra: str) -> None: |
| 10 | msg = f"{backend} requires extra '{extra}'.\nInstall it with: pip install 'vicinity[{extra}]'\n" |
| 11 | super().__init__(msg) |
| 12 | self.backend = backend |
| 13 | self.extra = extra |
| 14 | |
| 15 | |
| 16 | def _require(module_name: str, backend: Backend, extra: str) -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…