Pydantic extra types#
Pydantic Extra Types is a package that extends Pydantic with support for additional types.
The following types can be used as type hints for Feud commands.
Important
This page may only list a subset of types from the Pydantic Extra Types package.
All extra types (including those not listed on this page) are compatible with Feud.
Tip
All of the types listed on this page are easily accessible from the feud.typing
module.
It is recommended to import the feud.typing
module with an alias such as t
for convenient short-hand use, e.g.
from feud import typing as t
t.PhoneNumber # pydantic_extra_types.phone_number.PhoneNumbers
t.PaymentCardNumber # pydantic_extra_types.payment.PaymentCardNumber
t.Latitude # pydantic_extra_types.coordinate.Latitude
t.Color # pydantic_extra_types.color.Color
The version number indicates the minimum pydantic-extra-types
version required to use the type.
If this version requirement is not met, the type is not imported by Feud.
Color type#
pydantic_extra_types.color.Color
(>= 2.1.0
)
Coordinate types#
pydantic_extra_types.coordinate.Coordinate
(>= 2.1.0
)pydantic_extra_types.coordinate.Latitude
(>= 2.1.0
)pydantic_extra_types.coordinate.Longitude
(>= 2.1.0
)
Country types#
pydantic_extra_types.country.CountryAlpha2
(>= 2.1.0
)pydantic_extra_types.country.CountryAlpha3
(>= 2.1.0
)pydantic_extra_types.country.CountryOfficialName
(>= 2.1.0, <2.4.0
)
Phone number type#
Payment types#
MAC address type#
pydantic_extra_types.mac_address.MacAddress
(>= 2.1.0
)
Routing number type#
ULID type#
pydantic_extra_types.ulid.ULID
(>= 2.2.0
)