Skip to content

error: Module has no attribute "MAX_BSON_SIZE" #66

@lstolcman

Description

@lstolcman

Error:

(venv) (base) ➜  mypy .
test.py:3: error: Module has no attribute "MAX_BSON_SIZE"
Found 1 error in 1 file (checked 1 source file)

code of pymongo:
obraz

https://github.com/mongodb/mongo-python-driver/blob/e6b65860f59b432487fcdb385fde663345ce2917/pymongo/common.py#L56

Minimal working example:

import pymongo
print(pymongo.common.MAX_BSON_SIZE)

Requirements:

pip install pymongo mypy mongo-types

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions