(data: Func, *args)
| 15 | |
| 16 | |
| 17 | def api_binding_base(data: Func, *args): |
| 18 | func = data[0] |
| 19 | |
| 20 | if not func: |
| 21 | name: str = data[2] |
| 22 | minver = data[1] |
| 23 | |
| 24 | raise NotImplementedError( |
| 25 | f"{name} is only supported on versions {data[1]}+" |
| 26 | if minver |
| 27 | else f"{name} is not supported on this version", |
| 28 | ) |
| 29 | |
| 30 | return binding_base(func, *args) |
| 31 | |
| 32 | |
| 33 | class DumbassError(Exception): |
no test coverage detected