Skip to content

Commit

Permalink
🔥 Remove unnecessary = ...
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Sep 4, 2021
1 parent 47001ee commit 3a7838d
Show file tree
Hide file tree
Showing 6 changed files with 325 additions and 325 deletions.
20 changes: 10 additions & 10 deletions python/phonenumbers/phonemetadata.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ from .util import UnicodeMixin
REGION_CODE_FOR_NON_GEO_ENTITY: str

class NumberFormat(UnicodeMixin, ImmutableMixin):
pattern: str | None = ...
format: str | None = ...
leading_digits_pattern: list[str] = ...
national_prefix_formatting_rule: str | None = ...
national_prefix_optional_when_formatting: bool | None = ...
domestic_carrier_code_formatting_rule: str | None = ...
pattern: str | None
format: str | None
leading_digits_pattern: list[str]
national_prefix_formatting_rule: str | None
national_prefix_optional_when_formatting: bool | None
domestic_carrier_code_formatting_rule: str | None
def __init__(
self,
pattern: str | None = ...,
Expand All @@ -29,10 +29,10 @@ class NumberFormat(UnicodeMixin, ImmutableMixin):
def __unicode__(self) -> str: ...

class PhoneNumberDesc(UnicodeMixin, ImmutableMixin):
national_number_pattern: str | None = ...
example_number: str | None = ...
possible_length: tuple[int, ...] = ...
possible_length_local_only: tuple[int, ...] = ...
national_number_pattern: str | None
example_number: str | None
possible_length: tuple[int, ...]
possible_length_local_only: tuple[int, ...]
def __init__(
self,
national_number_pattern: str | None = ...,
Expand Down
42 changes: 21 additions & 21 deletions python/phonenumbers/phonenumber.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ 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 = ...
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 = ...
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 = ...,
Expand All @@ -38,14 +38,14 @@ class PhoneNumber(UnicodeMixin):
def __unicode__(self) -> str: ...

class FrozenPhoneNumber(PhoneNumber, ImmutableMixin):
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 = ...
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
@overload
def __init__(self, numobj: PhoneNumber) -> None: ...
@overload
Expand Down
16 changes: 8 additions & 8 deletions python/phonenumbers/phonenumbermatcher.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ _TIME_STAMPS_SUFFIX: Pattern[str]
_INNER_MATCHES: tuple[Pattern[str], ...]

class Leniency:
POSSIBLE: int = ...
VALID: int = ...
STRICT_GROUPING: int = ...
EXACT_GROUPING: int = ...
POSSIBLE: int
VALID: int
STRICT_GROUPING: int
EXACT_GROUPING: int

def _verify(leniency: int, numobj: PhoneNumber, candidate: str, matcher: PhoneNumberMatcher) -> bool: ...
def _verify_strict_grouping(numobj: PhoneNumber, candidate: str, matcher: PhoneNumberMatcher) -> bool: ...
Expand Down Expand Up @@ -73,10 +73,10 @@ class PhoneNumberMatcher:
def __iter__(self) -> Iterator[PhoneNumberMatch]: ...

class PhoneNumberMatch(UnicodeMixin):
start: int = ...
raw_string: str = ...
end: int = ...
number: PhoneNumber = ...
start: int
raw_string: str
end: int
number: PhoneNumber
def __init__(self, start: int, raw_string: str, numobj: PhoneNumber) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
Expand Down
66 changes: 33 additions & 33 deletions python/phonenumbers/phonenumberutil.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -63,41 +63,41 @@ _CC_STRING: str
_FIRST_GROUP_ONLY_PREFIX_PATTERN: Pattern[str]

class PhoneNumberFormat:
E164: int = ...
INTERNATIONAL: int = ...
NATIONAL: int = ...
RFC3966: int = ...
E164: int
INTERNATIONAL: int
NATIONAL: int
RFC3966: int

class PhoneNumberType:
FIXED_LINE: int = ...
MOBILE: int = ...
FIXED_LINE_OR_MOBILE: int = ...
TOLL_FREE: int = ...
PREMIUM_RATE: int = ...
SHARED_COST: int = ...
VOIP: int = ...
PERSONAL_NUMBER: int = ...
PAGER: int = ...
UAN: int = ...
VOICEMAIL: int = ...
UNKNOWN: int = ...
FIXED_LINE: int
MOBILE: int
FIXED_LINE_OR_MOBILE: int
TOLL_FREE: int
PREMIUM_RATE: int
SHARED_COST: int
VOIP: int
PERSONAL_NUMBER: int
PAGER: int
UAN: int
VOICEMAIL: int
UNKNOWN: int
@classmethod
def values(cls) -> tuple[int, ...]: ...

class MatchType:
NOT_A_NUMBER: int = ...
NO_MATCH: int = ...
SHORT_NSN_MATCH: int = ...
NSN_MATCH: int = ...
EXACT_MATCH: int = ...
NOT_A_NUMBER: int
NO_MATCH: int
SHORT_NSN_MATCH: int
NSN_MATCH: int
EXACT_MATCH: int

class ValidationResult:
IS_POSSIBLE: int = ...
IS_POSSIBLE_LOCAL_ONLY: int = ...
INVALID_COUNTRY_CODE: int = ...
TOO_SHORT: int = ...
INVALID_LENGTH: int = ...
TOO_LONG: int = ...
IS_POSSIBLE: int
IS_POSSIBLE_LOCAL_ONLY: int
INVALID_COUNTRY_CODE: int
TOO_SHORT: int
INVALID_LENGTH: int
TOO_LONG: int

SUPPORTED_REGIONS: set[str]
COUNTRY_CODES_FOR_NON_GEO_REGIONS: set[int]
Expand Down Expand Up @@ -190,12 +190,12 @@ def can_be_internationally_dialled(numobj: PhoneNumber) -> bool: ...
def is_mobile_number_portable_region(region_code: str) -> bool: ...

class NumberParseException(UnicodeMixin, Exception):
INVALID_COUNTRY_CODE: int = ...
NOT_A_NUMBER: int = ...
TOO_SHORT_AFTER_IDD: int = ...
TOO_SHORT_NSN: int = ...
TOO_LONG: int = ...
error_type: int = ...
INVALID_COUNTRY_CODE: int
NOT_A_NUMBER: int
TOO_SHORT_AFTER_IDD: int
TOO_SHORT_NSN: int
TOO_LONG: int
error_type: int
def __init__(self, error_type: int, msg: str) -> None: ...
def __reduce__(self) -> tuple[type[NumberParseException], tuple[int, str]]: ...
def __unicode__(self) -> str: ...
Expand Down
8 changes: 4 additions & 4 deletions python/phonenumbers/shortnumberinfo.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ from .phonenumber import PhoneNumber
SUPPORTED_SHORT_REGIONS: list[str]

class ShortNumberCost:
TOLL_FREE: int = ...
STANDARD_RATE: int = ...
PREMIUM_RATE: int = ...
UNKNOWN_COST: int = ...
TOLL_FREE: int
STANDARD_RATE: int
PREMIUM_RATE: int
UNKNOWN_COST: int

def _region_dialing_from_matches_number(numobj: PhoneNumber, region_dialing_from: str) -> bool: ...
def is_possible_short_number_for_region(short_numobj: PhoneNumber, region_dialing_from: str) -> bool: ...
Expand Down
Loading

0 comments on commit 3a7838d

Please sign in to comment.