You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you wanted to get really fancy, you could also use TypedDicts, to set output validation on multiple outputs, but that's only available natively from python 3.8
I guess the user can always specify that as return value, and we just need to make sure it works out with the isinstance check, right? If some user code only supports 3.8+, that shouldn't bother us.
Since we're dropping py2 support in #3566, we can make use of glorious new features.
One possibility would be to add (optional) input / output validation for calcfunctions and workfunctions through type hints.
Example:
Should be quite straightforward to implement. Opinions on whether this would be desirable?
The text was updated successfully, but these errors were encountered: