diff options
author | Aarni Koskela <akx@iki.fi> | 2023-03-02 16:08:27 +0200 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2023-03-02 16:08:34 +0200 |
commit | 8553928447328886c39fa928b69e69d7e8808491 (patch) | |
tree | 2c6846f4dbb5de5e9e937cebbb3ec3d0b2595836 | |
parent | 9487b2ead7f3594096737a386796bb11d80d220f (diff) | |
download | babel-issue-982.tar.gz |
Update babel/support.pyissue-982
Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
-rw-r--r-- | babel/support.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/babel/support.py b/babel/support.py index 1b6056f..40ce981 100644 --- a/babel/support.py +++ b/babel/support.py @@ -684,8 +684,11 @@ class Translations(NullTranslations, gettext.GNUTranslations): def _locales_to_names( locales: Iterable[str | Locale] | str | Locale | None, ) -> list[str] | None: - """ - Normalize a `locales` argument to a list of locale names. + """Normalize a `locales` argument to a list of locale names. + + :param locales: the list of locales in order of preference (items in + this list can be either `Locale` objects or locale + strings) """ if locales is None: return None |