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
... fails with the following ValueError: Field names must be valid identifiers (""red", "green", "blue"" is not valid).
One could easily work around the problem in this contrived example by using a list or tuple instead of the set literal, but what if we need curly brackets in a regex, or need to pass a dict?
The text was updated successfully, but these errors were encountered:
At the time of this writing, it is cumbersome to instantiate converters with any parameter containing curly brackets in its expression.
For instance, the following attempt to validate color to be one of
"red"
,"green"
or"blue"
... fails with the following
ValueError: Field names must be valid identifiers (""red", "green", "blue"" is not valid)
.One could easily work around the problem in this contrived example by using a list or tuple instead of the set literal, but what if we need curly brackets in a regex, or need to pass a
dict
?The text was updated successfully, but these errors were encountered: