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

Function name_callback

python/map_closures/tools/cmd.py:72–78  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

70
71
72def name_callback(value: str):
73 if not value:
74 return value
75 dl = available_dataloaders()
76 if value not in dl:
77 raise typer.BadParameter(f"Supported dataloaders are:\n{', '.join(dl)}")
78 return value
79
80
81app = typer.Typer(add_completion=False, rich_markup_mode="rich")

Callers

nothing calls this directly

Calls 1

available_dataloadersFunction · 0.90

Tested by

no test coverage detected