[Python-checkins] Fixing doc for callback for lambda (GG-25779)
ericvsmith
webhook-mailer at python.org
Sat May 1 14:24:17 EDT 2021
https://github.com/python/cpython/commit/50c21ad35372983680b44130be560d856c5f27ca
commit: 50c21ad35372983680b44130be560d856c5f27ca
branch: master
author: Shreyash Sharma <shreyash.sharma at philips.com>
committer: ericvsmith <ericvsmith at users.noreply.github.com>
date: 2021-05-01T14:24:10-04:00
summary:
Fixing doc for callback for lambda (GG-25779)
Fixing callback for lambda when no return value is provided
files:
M Doc/library/types.rst
diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index 956b9e8f959c6..b3fac293ecc9e 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