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
When some special characters are used as field names, initializing a model using a dictionary leads to a validation error.
Example Code
importpydanticclassExample(pydantic.BaseModel):
width_µm: floatmy_data= {'width_µm': 33}
# The following works finethis_works=Example(width_µm=42)
# However, this does not workthis_does_not_work=Example(**my_data)
Initial Checks
Description
When some special characters are used as field names, initializing a model using a dictionary leads to a validation error.
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: