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
Parameters passed through the route URI are always resolved as str. It would be much cleaner if the framework could convert the str values to the correct types, using as reference the value place holders in the route definition.
For example, let's say we have the following route:
Parameters passed through the route URI are always resolved as
str
. It would be much cleaner if the framework could convert thestr
values to the correct types, using as reference the value place holders in the route definition.For example, let's say we have the following route:
The
id
will be typestr
even though it has been specified that the type of the parameter isint
.The framework supports adding
str
andint
parameters to the route URI so that would be a good start when implementing type inference.The text was updated successfully, but these errors were encountered: