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

Function wrapper

scripts/make.py:72–75  ·  view source on GitHub ↗
(func: Callable[..., None])

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…