From 739eb5d8ff7c88185a5f3f1717ecff8ca53e7ef7 Mon Sep 17 00:00:00 2001 From: Lucas Mirelmann Date: Sun, 1 Feb 2026 12:06:37 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20the=20case=20that=20dict=C2=B7update?= =?UTF-8?q?=20can=20take=20`None`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit None of the implementations accept `None` as a parameter for dict·update. This includes Bazel, starlark-go and Python. This construction is not accepted. --- spec.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec.md b/spec.md index 7707b3e..58d500e 100644 --- a/spec.md +++ b/spec.md @@ -3811,8 +3811,7 @@ x # {"one": 1, "two": 2, "three": 3, "four `D.update([pairs][, name=value[, ...])` makes a series of key/value insertions into dictionary D, then returns `None.` -If the positional argument `pairs` is present, it must be `None`, -another `dict`, or some other iterable. +If the positional argument `pairs` is present, it must be `dict`, or some other iterable. If it is another `dict`, then its key/value pairs are inserted into D. If it is an iterable, it must provide a sequence of pairs (or other iterables of length 2), each of which is treated as a key/value pair to be inserted into D.