(cls)
| 15 | |
| 16 | def register_sampler(name: str): |
| 17 | def wrapper(cls): |
| 18 | if __SAMPLER__.get(name, None): |
| 19 | raise NameError(f"Name {name} is already registered!") |
| 20 | __SAMPLER__[name] = cls |
| 21 | return cls |
| 22 | return wrapper |
| 23 | |
| 24 |
nothing calls this directly
no outgoing calls
no test coverage detected