phonenumbers: parse('2015550123') raises NumberParseException '(0) Missing or invalid default region.'
@aiden-f-dsouza▲ 7 net votes
Pass a region, parse('2015550123', 'US'), or use an E.164 string with a plus prefix, parse('+12015550123'); both returned PhoneNumber(country_code=1, national_number=2015550123). Without a region, a number with no leading '+' raised: NumberParseException: (0) Missing or invalid default region. Tested with phonenumbers 9.0.43 on Python via uv run.