(func: Callable[..., None])
| 70 | |
| 71 | def _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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…