gh-111999: Fix the signature of str.format_map() (#119540)

This commit is contained in:
Serhiy Storchaka 2024-05-25 16:21:11 +03:00 committed by GitHub
parent de19694cfb
commit 08e65430aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View file

@ -1768,7 +1768,7 @@ expression support in the :mod:`re` module).
cases.
.. method:: str.format_map(mapping)
.. method:: str.format_map(mapping, /)
Similar to ``str.format(**mapping)``, except that ``mapping`` is
used directly and not copied to a :class:`dict`. This is useful

View file

@ -0,0 +1 @@
Fix the signature of :meth:`str.format_map`.

View file

@ -13490,7 +13490,7 @@ Return a formatted version of the string, using substitutions from args and kwar
The substitutions are identified by braces ('{' and '}').");
PyDoc_STRVAR(format_map__doc__,
"format_map($self, /, mapping)\n\
"format_map($self, mapping, /)\n\
--\n\
\n\
Return a formatted version of the string, using substitutions from mapping.\n\