-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer LC_MONETARY when formatting currencies #1173
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1173 +/- ##
==========================================
+ Coverage 91.33% 91.34% +0.01%
==========================================
Files 27 27
Lines 4650 4657 +7
==========================================
+ Hits 4247 4254 +7
Misses 403 403
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: Alexis Hildebrandt <[email protected]>
I'll take a look later today ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just have two questions, the rest looks good to me :)
else: | ||
raise TypeError(f"Invalid type for category: {category!r}") | ||
|
||
for name in varnames: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will technically try to look up an empty string now when using default_locale('')
or default_locale([''])
but I guess that's a rare-enough case?
if isinstance(category, str): | ||
varnames = (category, *varnames) | ||
elif isinstance(category, (list, tuple)): | ||
varnames = (*category, *varnames) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should calls like default_locale([None])
work without raising? (os.getenv
raises for None
)
Closes #1051 (supersedes it).