]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixing doc for callback for lambda (GG-25779) (GH-25788)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 1 May 2021 19:55:46 +0000 (12:55 -0700)
committerGitHub <noreply@github.com>
Sat, 1 May 2021 19:55:46 +0000 (15:55 -0400)
Fixing callback for lambda when no return value is provided
(cherry picked from commit 50c21ad35372983680b44130be560d856c5f27ca)

Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
Doc/library/types.rst

index d1099cf2af085eb65a0ffd9ddbf582a9f02b7941..83e2cb4cbddb6b030f1682408eade3eef347b934 100644 (file)
@@ -34,7 +34,7 @@ Dynamic Type Creation
    freshly created class namespace. It should accept the class namespace
    as its sole argument and update the namespace directly with the class
    contents. If no callback is provided, it has the same effect as passing
-   in ``lambda ns: ns``.
+   in ``lambda ns: None``.
 
    .. versionadded:: 3.3