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
Why: pydantic is useful for validation and settings and sometimes it is usefull to store stuff like Locale/date time pattern in setting
it would be possible to extend babel with optional pydantic compatibility when pydantic and pydantic core would be tried to be imported and a extra magic dunder method would be created __get_pydantic_core_schema__ that would use preexisting methods for parsing validation and serialization
non user would se maybe slight slow down on import (and exception handling in imports)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Why: pydantic is useful for validation and settings and sometimes it is usefull to store stuff like Locale/date time pattern in setting
it would be possible to extend babel with optional pydantic compatibility when pydantic and pydantic core would be tried to be imported and a extra magic dunder method would be created
__get_pydantic_core_schema__
that would use preexisting methods for parsing validation and serializationnon user would se maybe slight slow down on import (and exception handling in imports)
Beta Was this translation helpful? Give feedback.
All reactions