MCPcopy Create free account
hub / github.com/PRBonn/MapClosures / version_callback

Function version_callback

python/map_closures/tools/cmd.py:56–69  ·  view source on GitHub ↗
(value: bool)

Source from the content-addressed store, hash-verified

54
55
56def version_callback(value: bool):
57 if value:
58 try:
59 # Check that the python bindings are properly built and can be loaded at runtime
60 from map_closures.pybind import map_closures_pybind
61 except ImportError as e:
62 print(f"[ERRROR] Python bindings not properly built!")
63 print(f"[ERRROR] '{e}'")
64 raise typer.Exit(1)
65
66 import map_closures
67
68 print(f"[INFO] MapClosures Version: {map_closures.__version__}")
69 raise typer.Exit(0)
70
71
72def name_callback(value: str):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected