pydantic-extra-types icon indicating copy to clipboard operation
pydantic-extra-types copied to clipboard

Extra Pydantic types.

Results 41 pydantic-extra-types issues
Sort by recently updated
recently updated
newest added

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...

ready for review

https://github.com/pydantic/pydantic-extra-types/issues/139

awaiting author revision

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...

Types

good first issue
Types

### 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...