-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-3311 Module "pymongo" does not explicitly export attribute "MongoClient"; implicit reexport disabled #994
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
Conversation
…ngoClient"; implicit reexport disabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice test! One concern, is adding __all__
a breaking change for any users?
@@ -699,7 +700,7 @@ def command( | |||
check: bool = True, | |||
allowable_errors: Optional[Sequence[Union[str, int]]] = None, | |||
read_preference: Optional[_ServerMode] = None, | |||
codec_options: "Optional[CodecOptions[_CodecDocumentType]]" = None, | |||
codec_options: "Optional[bson.codec_options.CodecOptions[_CodecDocumentType]]" = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Why was this change needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sphinx saw an ambiguity between bson.CodecOptions
and bson.codec_options.CodecOptions
. ¯_(ツ)_/¯
test/test_default_exports.py
Outdated
names.remove("__all__") | ||
for name in mod.__all__: | ||
if name not in names and name not in ignores: | ||
raise ValueError(name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest using self.fail
or assert
with a message explaining the failure here and below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Still have this question:
|
If they were relying on any of the items in |
Also, if the user was relying on any of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, LGTM!
No description provided.