[Python-checkins] Fixing doc for callback for lambda (GG-25779) (GH-25788)

ericvsmith webhook-mailer at python.org
Sat May 1 15:55:54 EDT 2021


https://github.com/python/cpython/commit/5c018db4673aceab69dccb3e68579bbb8756164f
commit: 5c018db4673aceab69dccb3e68579bbb8756164f
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ericvsmith <ericvsmith at users.noreply.github.com>
date: 2021-05-01T15:55:46-04:00
summary:

Fixing doc for callback for lambda (GG-25779) (GH-25788)

Fixing callback for lambda when no return value is provided
(cherry picked from commit 50c21ad35372983680b44130be560d856c5f27ca)

Co-authored-by: Shreyash Sharma <shreyash.sharma at philips.com>

Co-authored-by: Shreyash Sharma <shreyash.sharma at philips.com>

files:
M Doc/library/types.rst

diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index d1099cf2af085..83e2cb4cbddb6 100644
--- a/Doc/library/types.rst
+++ b/Doc/library/types.rst
@@ -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
 



More information about the Python-checkins mailing list