MCPcopy Create free account
hub / github.com/MinishLab/vicinity / OptionalDependencyError

Class OptionalDependencyError

vicinity/backends/__init__.py:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7
8class 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
16def _require(module_name: str, backend: Backend, extra: str) -> None:

Callers 1

_requireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…