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

Module "pymongo" does not explicitly export attribute "MongoClient"; implicit reexport disabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • 4.1.1
    • 4.2
    • None
    • None

    Description

      In the import statement

      from pymongo import MongoClient

      I get Module "pymongo" does not explicitly export attribute "MongoClient"; implicit reexport disabled [attr-defined] from mypy linter.
       
      Here are the details of package, env & os:
      Python Version: 3.10.4 (main, Apr  1 2022, 20:52:12) [GCC 9.4.0]
      PyMongo Version: 4.1.1
      PyMongo Has C: Yes
      OS: 18.04.1-Ubuntu
      MyPy (Linter) Version: 0.910
       

      Attachments

        Activity

          People

            steve.silvester@mongodb.com Steve Silvester
            pushp.vashisht@adcuratio.com Pushp Vashisht
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: