From 8553928447328886c39fa928b69e69d7e8808491 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 2 Mar 2023 16:08:27 +0200 Subject: Update babel/support.py Co-authored-by: Jonah Lawrence --- babel/support.py | 7 +++++-- 1 file 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 -- cgit v1.2.1