]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixing doc for callback for lambda (GG-25779)
authorShreyash Sharma <shreyash.sharma@philips.com>
Sat, 1 May 2021 18:24:10 +0000 (23:54 +0530)
committerGitHub <noreply@github.com>
Sat, 1 May 2021 18:24:10 +0000 (14:24 -0400)
Fixing callback for lambda when no return value is provided

Doc/library/types.rst

index 956b9e8f959c659361937da8c4889cb9ea614ca1..b3fac293ecc9e1ab594e23085017e9b298c70abc 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