Skip to content

Commit c1a8889

Browse files
committed
Fix up some docstrings
1 parent 03b2dc3 commit c1a8889

6 files changed

Lines changed: 11 additions & 0 deletions

File tree

babel/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ def negotiate(
266266
:param preferred: the list of locale identifiers preferred by the user
267267
:param available: the list of locale identifiers available
268268
:param aliases: a dictionary of aliases for locale identifiers
269+
:param sep: separator for parsing; e.g. Windows tends to use '-' instead of '_'.
269270
"""
270271
identifier = negotiate_locale(preferred, available, sep=sep,
271272
aliases=aliases)

babel/dates.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,6 +1935,10 @@ def match_skeleton(skeleton: str, options: Iterable[str], allow_different_fields
19351935
:type skeleton: str
19361936
:param options: An iterable of other skeletons to match against
19371937
:type options: Iterable[str]
1938+
:param allow_different_fields: Whether to allow a match that uses different fields
1939+
than the skeleton requested.
1940+
:type allow_different_fields: bool
1941+
19381942
:return: The closest skeleton match, or if no match was found, None.
19391943
:rtype: str|None
19401944
"""

babel/messages/catalog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,9 @@ def update(
830830
831831
:param template: the reference catalog, usually read from a POT file
832832
:param no_fuzzy_matching: whether to use fuzzy matching of message IDs
833+
:param update_header_comment: whether to copy the header comment from the template
834+
:param keep_user_comments: whether to keep user comments from the old catalog
835+
:param update_creation_date: whether to copy the creation date from the template
833836
"""
834837
messages = self._messages
835838
remaining = messages.copy()

babel/messages/frontend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,7 @@ def parse_mapping_cfg(fileobj, filename=None):
10121012
10131013
:param fileobj: a readable file-like object containing the configuration
10141014
text to parse
1015+
:param filename: the name of the file being parsed, for error messages
10151016
"""
10161017
extractors = {}
10171018
method_map = []

babel/messages/jslexer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def tokenize(source: str, jsx: bool = True, dotted: bool = True, template_string
162162
"""
163163
Tokenize JavaScript/JSX source. Returns a generator of tokens.
164164
165+
:param source: The JavaScript source to tokenize.
165166
:param jsx: Enable (limited) JSX parsing.
166167
:param dotted: Read dotted names as single name token.
167168
:param template_string: Support ES6 template strings

babel/numbers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,7 @@ def apply(
14041404
:type decimal_quantization: bool
14051405
:param force_frac: DEPRECATED - a forced override for `self.frac_prec`
14061406
for a single formatting invocation.
1407+
:param group_separator: Whether to use the locale's number group separator.
14071408
:param numbering_system: The numbering system used for formatting number symbols. Defaults to "latn".
14081409
The special value "default" will use the default numbering system of the locale.
14091410
:return: Formatted decimal string.

0 commit comments

Comments
 (0)