MCPcopy Create free account
hub / github.com/mkdocstrings/griffe / _command

Function _command

scripts/make.py:71–77  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

69
70
71def _command(name: str) -> Callable[[Callable[..., None]], Callable[..., None]]:
72 def wrapper(func: Callable[..., None]) -> Callable[..., None]:
73 func.__cmdname__ = name # ty:ignore[unresolved-attribute]
74 _commands.append(func)
75 return func
76
77 return wrapper
78
79
80# -----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…