Skip to content

Commit

Permalink
Update uk_UA phone provider (#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
lozik4 committed Apr 12, 2024
1 parent c632472 commit 11055a7
Showing 1 changed file with 63 additions and 1 deletion.
64 changes: 63 additions & 1 deletion faker/providers/phone_number/uk_UA/__init__.py
@@ -1,8 +1,9 @@
from .. import ElementsType
from .. import Provider as PhoneNumberProvider


class Provider(PhoneNumberProvider):
formats = (
formats: ElementsType[str] = (
"###-##-##",
"### ## ##",
"0## ### ## ##",
Expand All @@ -12,3 +13,64 @@ class Provider(PhoneNumberProvider):
"+380 (##) ###-##-##",
"+380 ## ### ## ##",
)

# info: https://ru.wikipedia.org/wiki/MSISDN
msisdn_formats: ElementsType[str] = ("############",)

# info: https://en.wikipedia.org/wiki/Telephone_numbers_in_Ukraine
country_calling_codes: ElementsType[str] = (
"+38031",
"+38032",
"+38033",
"+38034",
"+38035",
"+38036",
"+38037",
"+38038",

"+38041",
"+38043",
"+38044",
"+38045",
"+38046",
"+38047",
"+38048",
"+38049",

"+38050",
"+38051",
"+38052",
"+38053",
"+38054",
"+38055",
"+38056",
"+38057",

"+38061",
"+38062",
"+38063",
"+38063",
"+38065",
"+38066",
"+38067",
"+38068",
"+38069",

"+38070",
"+38071",
"+38072",
"+38073",

"+3800",

"+38090",
"+38091",
"+38092",
"+38093",
"+38094",
"+38095",
"+38096",
"+38097",
"+38098",
"+38099",
)

0 comments on commit 11055a7

Please sign in to comment.