(method, cls: type)
| 226 | return number |
| 227 | |
| 228 | |
| 229 | def parse_and_format_phone_number(number: str, with_country_code=True) -> str: |
| 230 | phone_number = PhoneNumber(number) |
| 231 | if not with_country_code: |
| 232 | return str(phone_number.number.national_number) |
| 233 | return phone_number.get_normalised_format() |
| 234 |