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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.2
    • Affects Version/s: 4.1.1
    • Component/s: None
    • None

      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
       

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

              Created:
              Updated:
              Resolved: