PYTHON-4255 Add __getitem__ and __getattr__ methods to API docs (#1547)

This commit is contained in:
Steven Silvester 2024-03-12 10:36:45 -05:00 committed by GitHub
parent 6a56d09433
commit 7a90fe8828
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View File

@ -69,3 +69,5 @@
.. automethod:: drop
.. automethod:: rename
.. automethod:: options
.. automethod:: __getitem__
.. automethod:: __getattr__

View File

@ -20,6 +20,8 @@
.. note:: Use dictionary style access if `collection_name` is an
attribute of the :class:`Database` class eg: db[`collection_name`].
.. automethod:: __getitem__
.. automethod:: __getattr__
.. autoattribute:: codec_options
.. autoattribute:: read_preference
.. autoattribute:: write_concern

View File

@ -35,3 +35,5 @@
.. automethod:: get_database
.. automethod:: server_info
.. automethod:: watch
.. automethod:: __getitem__
.. automethod:: __getattr__