|
|
|
|
|
by theptip
2109 days ago
|
|
Looks like it’s actually possible to string something like this together in Python; custom types are of course supported, and you can write a generic validation function that looks for your function’s type signature and then asserts that every UnitInterval variable is within the specified bounds. You’d have to decorate/call manually in your functions so it’s not watertight, but at least it’s DRY. |
|