Skip to content
Pydantic
pydantic_extra_types.phone_numbers
Initializing search
pydantic/pydantic
Get Started
Usage
Error Messages
Integrations
Blog
API Documentation
Pydantic
pydantic/pydantic
Get Started
Get Started
Welcome to Pydantic
Why use Pydantic
Help with Pydantic
Installation
Migration Guide
Version Compatibility
Contributing
Changelog
Usage
Usage
Models
Field Types
Field Types
Types Overview
Standard Library Types
Booleans
ByteSize
Callables
Datetimes
Dicts and Mapping
Encoded Types
Enums and Choices
File Types
JSON
Lists and Tuples
Number Types
Secret Types
Sequence, Iterable & Iterator
Sets and frozenset
Strict Types
String Types
Type and TypeVar
Types with Fields
Unions
URLs
UUIDs
Encoded
Custom Data Types
Extra Types
Extra Types
Extra Types Overview
Color Types
Payment Card Numbers
Phone Numbers
Routing Numbers
MAC Address
Validators
Model Config
Fields
JSON Schema
Serialization
Computed Fields
Dataclasses
TypeAdapter
Validation Decorator
Postponed Annotations
Strict Mode
Conversion Table
Settings Management
Error Messages
Error Messages
Error Handling
Validation Errors
Usage Errors
Integrations
Integrations
Mypy
PyCharm
Hypothesis
Visual Studio Code
datamodel-code-generator
devtools
Rich
Blog
Blog
Pydantic V2 Is Here!
Pydantic V2 Pre Release
Pydantic V2 Plan
API Documentation
API Documentation
Pydantic
Pydantic
BaseModel
RootModel
Pydantic Dataclasses
TypeAdapter
validate_call
Fields
Config
json_schema
Errors
Functional Validators
Functional Serializers
Pydantic Types
Network Types
Version Information
Pydantic Core
Pydantic Core
pydantic_core
pydantic_core.core_schema
Pydantic Settings
Pydantic Settings
pydantic_settings
Pydantic Extra Types
Pydantic Extra Types
pydantic_extra_types.color
pydantic_extra_types.country
pydantic_extra_types.payment
pydantic_extra_types.phone_numbers
pydantic_extra_types.phone_numbers
Page contents
pydantic_extra_types.phone_numbers
PhoneNumber
pydantic_extra_types.routing_number
Page contents
pydantic_extra_types.phone_numbers
PhoneNumber
pydantic_extra_types.phone_numbers
PhoneNumber
¶
Bases:
str
An international phone number