]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixing doc for callback for lambda (GH-25779) (GH-25789)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 1 May 2021 18:26:46 +0000 (11:26 -0700)
committerGitHub <noreply@github.com>
Sat, 1 May 2021 18:26:46 +0000 (14:26 -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 999a1f40c3391e0219e481b82d036e74c2faa3fe..ef19031910fd742cd50c107e8d24d4772caec67b 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