Re: [web2py] Re: web2py reports "invalid function (client/get_approval)" when function has typing return type

2019-03-08 Thread João Matos
Hello, I already opened an issue on Github. Thanks, but I prefer to stick with the old type syntax # type: () -> Dict[str, SQLFORM] solution instead of creating another function. Best regards, João Matos On 08-03-2019 16:45,

[web2py] Re: web2py reports "invalid function (client/get_approval)" when function has typing return type

2019-03-08 Thread Anthony
In order to determine which functions in a controller file to expose as actions, web2py uses the following regex (the intention is to identify only functions that take no arguments and don't start with a double underscore): '^def\s+(?P_?[a-zA-Z0-9]\w*)\( *\)\s*:' As you can see, this does not