| Conditions | 2 |
| Total Lines | 5 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from so_magic.data.dataset import BroadcastingDatapointsFactory, DatapointsManager |
||
| 32 | @classmethod |
||
| 33 | def create(cls, backend_type, *args, **kwargs): |
||
| 34 | if backend_type not in cls.subclasses: |
||
| 35 | raise ValueError(f"Request Backend of type '{backend_type}'; supported are [{', '.join(sorted(cls.subclasses.keys()))}]") |
||
| 36 | return cls.subclasses[backend_type](*args, **kwargs) |
||
| 37 |