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
Right now our match function is limited in its static type checking. It will not statically tell you whether or not you have a handler for all keys, will not ensure that the _ is used as a catch-all, and probably more. It would be great if the Kybra match function were just as powerful as the Rust match function, but as least as powerful as Azle's.
What we really want from Python's type hinting system is something like TypeScript's keyof operator or index types. Unfortunately the Python type hinting system seems to just not be powerful enough to do this yet. Here are a number of issues that explore these limitations:
Right now our match function is limited in its static type checking. It will not statically tell you whether or not you have a handler for all keys, will not ensure that the _ is used as a catch-all, and probably more. It would be great if the Kybra match function were just as powerful as the Rust match function, but as least as powerful as Azle's.
What we really want from Python's type hinting system is something like TypeScript's
keyof
operator or index types. Unfortunately the Python type hinting system seems to just not be powerful enough to do this yet. Here are a number of issues that explore these limitations:The text was updated successfully, but these errors were encountered: