diff --git a/stubs/babel/METADATA.toml b/stubs/babel/METADATA.toml index cb16b293a669..72ddcc39b624 100644 --- a/stubs/babel/METADATA.toml +++ b/stubs/babel/METADATA.toml @@ -1,2 +1,2 @@ -version = "2.9.*" +version = "2.10.*" requires = ["types-pytz"] diff --git a/stubs/babel/babel/_compat.pyi b/stubs/babel/babel/_compat.pyi deleted file mode 100644 index 6247814e9887..000000000000 --- a/stubs/babel/babel/_compat.pyi +++ /dev/null @@ -1,19 +0,0 @@ -from typing import Any - -PY2: Any -text_type = str -string_types: Any -integer_types: Any -text_to_native: Any -unichr = chr -iterkeys: Any -itervalues: Any -iteritems: Any -izip = zip -imap = map -range_type = range -cmp: Any -array_tobytes: Any -number_types: Any - -def force_text(s, encoding: str = ..., errors: str = ...): ... diff --git a/stubs/babel/babel/dates.pyi b/stubs/babel/babel/dates.pyi index 68723fc884c7..ffff795e740b 100644 --- a/stubs/babel/babel/dates.pyi +++ b/stubs/babel/babel/dates.pyi @@ -105,8 +105,8 @@ def get_datetime_format(format: str = ..., locale=...): ... def get_time_format(format: str = ..., locale=...): ... # Basic Parsing -def parse_date(string, locale=...): ... -def parse_time(string, locale=...): ... +def parse_date(string, locale=..., format: str = ...): ... +def parse_time(string, locale=..., format: str = ...): ... def parse_pattern(pattern): ... # Undocumented @@ -142,7 +142,7 @@ class DateTimeFormat: def format_weekday(self, char: str = ..., num: int = ...): ... def format_day_of_year(self, num): ... def format_day_of_week_in_month(self): ... - def format_period(self, char): ... + def format_period(self, char, num): ... def format_frac_seconds(self, num): ... def format_milliseconds_in_day(self, num): ... def format_timezone(self, char, num): ... diff --git a/stubs/babel/babel/messages/extract.pyi b/stubs/babel/babel/messages/extract.pyi index 6a761a2b686b..5e7127f562b8 100644 --- a/stubs/babel/babel/messages/extract.pyi +++ b/stubs/babel/babel/messages/extract.pyi @@ -1,3 +1,4 @@ +from collections.abc import Callable from typing import Any GROUP_NAME: str @@ -13,6 +14,7 @@ def extract_from_dir( comment_tags=..., callback: Any | None = ..., strip_comment_tags: bool = ..., + directory_filter: Callable[[str], bool] | None = ..., ) -> None: ... def check_and_call_extract_file( filepath, method_map, options_map, callback, keywords, comment_tags, strip_comment_tags, dirpath: Any | None = ... diff --git a/stubs/babel/babel/messages/frontend.pyi b/stubs/babel/babel/messages/frontend.pyi index a3e99c8810e5..46e8662348e4 100644 --- a/stubs/babel/babel/messages/frontend.pyi +++ b/stubs/babel/babel/messages/frontend.pyi @@ -2,8 +2,6 @@ import abc from distutils.cmd import Command as _Command from typing import Any -po_file_read_mode: Any - def listify_value(arg, split: Any | None = ...): ... class Command(_Command, metaclass=abc.ABCMeta):