Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Module has no attribute "MAX_BSON_SIZE" #66

Open
lstolcman opened this issue Feb 18, 2022 · 0 comments
Open

error: Module has no attribute "MAX_BSON_SIZE" #66

lstolcman opened this issue Feb 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@lstolcman
Copy link

lstolcman commented Feb 18, 2022

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
@sbdchd sbdchd added the bug Something isn't working label Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants