]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-106318: Fix incorrectly rendered code block in `str.isalnum()` docs (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Mar 2026 12:12:36 +0000 (13:12 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Mar 2026 12:12:36 +0000 (13:12 +0100)
(cherry picked from commit f912c835b94d75ae4823153c160f0cc674a243bb)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Doc/library/stdtypes.rst

index 1e1ae7a129d5625c9db55119f0573245fe327feb..976bc130d982261c811d16f8225bc80788751561 100644 (file)
@@ -2090,7 +2090,7 @@ expression support in the :mod:`re` module).
    Return ``True`` if all characters in the string are alphanumeric and there is at
    least one character, ``False`` otherwise.  A character ``c`` is alphanumeric if one
    of the following returns ``True``: ``c.isalpha()``, ``c.isdecimal()``,
-   ``c.isdigit()``, or ``c.isnumeric()``. For example::
+   ``c.isdigit()``, or ``c.isnumeric()``. For example:
 
    .. doctest::