Skip to content
Pydantic
pydantic_extra_types.phone_numbers
Initializing search
pydantic/pydantic
Get Started
Usage
Error Messages
Integrations
Contribute
Blog
API Documentation
Pydantic
pydantic/pydantic
Get Started
Get Started
Welcome to Pydantic
Why use Pydantic
Help with Pydantic
Installation
Migration Guide
Version Compatibility
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
Contribute
Blog
Blog
Pydantic V2 Is Here!
Pydantic V2 Pre Release
Pydantic V2 Plan
API Documentation
API Documentation
Pydantic
Pydantic
pydantic
pydantic.alias_generators
pydantic.color
pydantic.config
pydantic.dataclasses
pydantic.errors
pydantic.fields
pydantic.functional_serializers
pydantic.functional_validators
pydantic.json_schema
pydantic.mypy
pydantic.networks
pydantic.root_model
pydantic.type_adapter
pydantic.types
pydantic.validate_call
pydantic.version
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