diff --git a/CHANGES/1203.doc.rst b/CHANGES/1203.doc.rst new file mode 100644 index 000000000..7c7cb2415 --- /dev/null +++ b/CHANGES/1203.doc.rst @@ -0,0 +1 @@ +Replaced docstring for :meth:`multidict.MultiDict.update` to don't use RST/markdown markup. diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index a40068ed0..5a6069e75 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -37,6 +37,8 @@ fallback fastpath filename formatters +RST +docstring gcc getitem github diff --git a/multidict/_multidict.c b/multidict/_multidict.c index cd9589311..887aa6b2e 100644 --- a/multidict/_multidict.c +++ b/multidict/_multidict.c @@ -822,7 +822,7 @@ PyDoc_STRVAR(multidict_popitem_doc, "Remove and return an arbitrary (key, value) pair."); PyDoc_STRVAR(multidict_update_doc, - "Update the dictionary from *other*, overwriting existing keys."); + "Update the dictionary, overwriting existing keys."); PyDoc_STRVAR(sizeof__doc__, "D.__sizeof__() -> size of D in memory, in bytes"); diff --git a/multidict/_multidict_py.py b/multidict/_multidict_py.py index f9fa25671..31ef3ef47 100644 --- a/multidict/_multidict_py.py +++ b/multidict/_multidict_py.py @@ -985,7 +985,7 @@ def popitem(self) -> tuple[str, _V]: return ret def update(self, arg: MDArg[_V] = None, /, **kwargs: _V) -> None: - """Update the dictionary from *other*, overwriting existing keys.""" + """Update the dictionary, overwriting existing keys.""" items = self._parse_args(arg, kwargs) newsize = self._used + len(items) log2_size = estimate_log2_keysize(newsize)