Skip to content

Commit 32a5933

Browse files
authored
PYTHON-4532 - Fix blank docs pages for generated modules (mongodb#1722)
1 parent 26f7a9d commit 32a5933

File tree

10 files changed

+14
-0
lines changed

10 files changed

+14
-0
lines changed

pymongo/auth_oidc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"""Re-import of synchronous AuthOIDC API for compatibility."""
1616
from __future__ import annotations
1717

18+
from pymongo.auth_oidc_shared import * # noqa: F403
1819
from pymongo.synchronous.auth_oidc import * # noqa: F403
1920
from pymongo.synchronous.auth_oidc import __doc__ as original_doc
2021

2122
__doc__ = original_doc
23+
__all__ = ["OIDCCallback", "OIDCCallbackContext", "OIDCCallbackResult", "OIDCIdPInfo"] # noqa: F405

pymongo/change_stream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
from pymongo.synchronous.change_stream import __doc__ as original_doc
2020

2121
__doc__ = original_doc
22+
__all__ = ["ChangeStream", "ClusterChangeStream", "CollectionChangeStream", "DatabaseChangeStream"] # noqa: F405

pymongo/client_session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
from pymongo.synchronous.client_session import __doc__ as original_doc
2020

2121
__doc__ = original_doc
22+
__all__ = ["ClientSession", "SessionOptions", "TransactionOptions"] # noqa: F405

pymongo/collection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@
1919
from pymongo.synchronous.collection import __doc__ as original_doc
2020

2121
__doc__ = original_doc
22+
__all__ = [ # noqa: F405
23+
"Collection",
24+
"ReturnDocument",
25+
]

pymongo/command_cursor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
from pymongo.synchronous.command_cursor import __doc__ as original_doc
2020

2121
__doc__ = original_doc
22+
__all__ = ["CommandCursor", "RawBatchCommandCursor"] # noqa: F405

pymongo/cursor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020
from pymongo.synchronous.cursor import __doc__ as original_doc
2121

2222
__doc__ = original_doc
23+
__all__ = ["Cursor", "CursorType", "RawBatchCursor"] # noqa: F405

pymongo/database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
from pymongo.synchronous.database import __doc__ as original_doc
2020

2121
__doc__ = original_doc
22+
__all__ = ["Database"] # noqa: F405

pymongo/encryption.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
from pymongo.synchronous.encryption import __doc__ as original_doc
2020

2121
__doc__ = original_doc
22+
__all__ = ["Algorithm", "ClientEncryption", "QueryType", "RewrapManyDataKeyResult"] # noqa: F405

pymongo/mongo_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
from pymongo.synchronous.mongo_client import __doc__ as original_doc
2020

2121
__doc__ = original_doc
22+
__all__ = ["MongoClient"] # noqa: F405

pymongo/pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
from pymongo.synchronous.pool import __doc__ as original_doc
2020

2121
__doc__ = original_doc
22+
__all__ = ["PoolOptions"] # noqa: F405

0 commit comments

Comments
 (0)