pydantic-extra-types
pydantic-extra-types copied to clipboard
Extra Pydantic types.
This PR is related to this [task](https://github.com/pydantic/pydantic/issues/9071) from Pydantic main library. I moved DSN types and tests from original `pydantic/networks.py` without any changes # Checklist ✅ The pull request title...
https://github.com/pydantic/pydantic-extra-types/issues/139
Hi everyone 👋🏼, I hope this is the right place to ask 🙃 Lately I have been working a lot with [ISO Week](https://en.wikipedia.org/wiki/ISO_8601#Week_dates), [ISO Week Date](https://en.wikipedia.org/wiki/ISO_8601#Week_dates) and [Ordinal Dates](https://en.wikipedia.org/wiki/ISO_8601#Ordinal_dates) formats...
Phone number are duplicated when putting multiple of them in Set or comparing equality. Functions `__eq__` and `__hash__` should be used.
We already have support for timestamps when using `datetime.datetime`, this adds support for timestamps to `pendulum_dt.DateTime` and `pendulum_dt.Date` types. 👍
I have a model definition: ```python from pydantic_extra_types.pendulum_dt import Date class TypeValuePair(BaseModel): """ type: value """ type: str = Field(...) value: str = Field(...) class Config: """ config """ populate_by_name...
### Initial Checks - [X] I have searched Google & GitHub for similar requests and couldn't find anything - [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think...
### Initial Checks - [X] I have searched Google & GitHub for similar requests and couldn't find anything - [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think...