(func)
| 40 | |
| 41 | def register(name=None, inputs=[], outputs=[], exclusive=False): |
| 42 | def decorator(func): |
| 43 | nonlocal name |
| 44 | global _PLUGINS_REGISTRY |
| 45 | if name is None: |
| 46 | name = func.__name__ |
| 47 | _PLUGINS_REGISTRY[__NODES_PLUGINS].append(__register(name, inputs, outputs, exclusive, func)) |
| 48 | return func |
| 49 | |
| 50 | return decorator |
| 51 |
nothing calls this directly
no test coverage detected