MCPcopy
hub / github.com/ComposioHQ/composio / load_griffe

Function load_griffe

python/scripts/generate-docs.py:28–38  ·  view source on GitHub ↗

Load griffe lazily so parser helpers can be unit-tested without it.

()

Source from the content-addressed store, hash-verified

26
27
28def load_griffe() -> Any:
29 """Load griffe lazily so parser helpers can be unit-tested without it."""
30 global _griffe
31 if _griffe is None:
32 try:
33 import griffe as griffe_module
34 except ImportError:
35 print("Error: griffe not installed. Run: pip install griffe")
36 raise SystemExit(1)
37 _griffe = griffe_module
38 return _griffe
39
40
41# Paths

Callers 2

extract_class_infoFunction · 0.85
mainFunction · 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…