DEP 0210, some annotations
jrief opened this issue · comments
Instead of a type string
I would use slug
The terminology slug is widely used in Django and everybody knows that it is a string without whitespace, slashes and other special characters, while string has a much wider scope of application.
Do not offer a type float
First, I don't see any use-case for floats, but more important, numbers of type float sometimes are localized using a comma as a decimal separator instead of the dot. This would allow two different URLs for the same Django view and this therefore can be very confusing.
It seems the DEP has been revised such that these comments are no longer applicable.
slug
is a separate converter.float
is not offered.