Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1086

Fix find_one documentation

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.3
    • Affects Version/s: 3.0, 3.1, 3.2
    • Component/s: None

      According to the code the signature differs:

      def find_one(self, filter=None, *args, **kwargs)
      

      But in the documentation, find_one signature is:

      find_one(filter_or_id=None, *args, **kwargs)
      

      I check the error in version 3.0 and 3.2.2 (I assume then the error is for pymongo>=3.0)

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            touilleMan Emmanuel Leblond [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: