diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-10-19 15:33:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 15:33:03 (GMT) |
commit | cdcab408a017fd8059921ffa0b4ee85be16e1e87 (patch) | |
tree | 3581be955b3ea2db1bde4bae360f4779d9252983 /Doc/library/unittest.mock.rst | |
parent | 68a5640a362be4f787f3da0e76cd174f7a458a4b (diff) | |
download | cpython-cdcab408a017fd8059921ffa0b4ee85be16e1e87.zip cpython-cdcab408a017fd8059921ffa0b4ee85be16e1e87.tar.gz cpython-cdcab408a017fd8059921ffa0b4ee85be16e1e87.tar.bz2 |
[3.12] GH-101100: Fix reference warnings for ``__getitem__`` (GH-110118) (#111073)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Doc/library/unittest.mock.rst')
-rw-r--r-- | Doc/library/unittest.mock.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 3d8393c..25f6445 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -1658,7 +1658,7 @@ Keywords can be used in the :func:`patch.dict` call to set values in the diction :func:`patch.dict` can be used with dictionary like objects that aren't actually dictionaries. At the very minimum they must support item getting, setting, deleting and either iteration or membership test. This corresponds to the -magic methods :meth:`__getitem__`, :meth:`__setitem__`, :meth:`__delitem__` and either +magic methods :meth:`~object.__getitem__`, :meth:`__setitem__`, :meth:`__delitem__` and either :meth:`__iter__` or :meth:`__contains__`. >>> class Container: |