File: phonenumber.pyi

package info (click to toggle)
python-phonenumbers 8.12.57-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,212 kB
  • sloc: python: 332,712; xml: 46,045; makefile: 143; java: 91
file content (55 lines) | stat: -rw-r--r-- 1,828 bytes parent folder | download | duplicates (2)
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
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

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: ...