-
Notifications
You must be signed in to change notification settings - Fork 79
Description
Hey team! I've got kinda of a strange one for you.
When trying to use PhoneNumberValidator
, as show in the Pydantic documentation example, I keep running into ImportError: cannot import name 'PhoneNumberValidator' from 'pydantic_extra_types.phone_numbers'
.
Whats even stranger is I have no such issue importing pydantic_extra_types.phone_numbers.PhoneNumber
. I've tried the import statement on several python versions, which I've listed below, and was only able to properly import on version 3.11.3.
My ultimate goal is to replicate NANumber as you have it in your tests almost exactly.
Hoping it's something I'm missing, but wanted to bring this to your attention.
Tested Versions
Python: 3.8.16, 3.9.19, 3.10.15, 3.11.3 (works on this version), 3.12.6
Pydantic: 2.9.1
phonenumbers: 8.13.45