forked from daviddrysdale/python-phonenumbers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphonenumber.pyi
More file actions
57 lines (53 loc) · 1.85 KB
/
Copy pathphonenumber.pyi
File metadata and controls
57 lines (53 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from typing import overload
from .util import ImmutableMixin
from .util import UnicodeMixin
class CountryCodeSource:
UNSPECIFIED: int
FROM_NUMBER_WITH_PLUS_SIGN: int
FROM_NUMBER_WITH_IDD: int
FROM_NUMBER_WITHOUT_PLUS_SIGN: int
FROM_DEFAULT_COUNTRY: int
@classmethod
def to_string(cls, val: int) -> str: ...
class PhoneNumber(UnicodeMixin):
country_code: int | None
national_number: int | None
extension: str | None
italian_leading_zero: bool | None
number_of_leading_zeros: int | None
raw_input: str | None
country_code_source: int
preferred_domestic_carrier_code: str | None
def __init__(
self,
country_code: int | None = ...,
national_number: int | None = ...,
extension: str | None = ...,
italian_leading_zero: bool | None = ...,
number_of_leading_zeros: int | None = ...,
raw_input: str | None = ...,
country_code_source: int = ...,
preferred_domestic_carrier_code: str | None = ...,
) -> None: ...
def clear(self) -> None: ...
def merge_from(self, other: PhoneNumber) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __repr__(self) -> str: ...
def __unicode__(self) -> str: ...
class FrozenPhoneNumber(PhoneNumber, ImmutableMixin):
@overload
def __init__(self, numobj: PhoneNumber) -> None: ...
@overload
def __init__(
self,
country_code: int | None = ...,
national_number: int | None = ...,
extension: str | None = ...,
italian_leading_zero: bool | None = ...,
number_of_leading_zeros: int | None = ...,
raw_input: str | None = ...,
country_code_source: int = ...,
preferred_domestic_carrier_code: str | None = ...,
) -> None: ...
def __hash__(self) -> int: ...