Skip to content

Commit 124dee6

Browse files
authored
PYTHON-3565 The docs page appears to be missing a component reference (#1137)
1 parent 57f757b commit 124dee6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pymongo/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"""
8686

8787
from pymongo import _csot
88-
from pymongo._version import __version__, get_version_string, version, version_tuple
88+
from pymongo._version import __version__, get_version_string, version_tuple
8989
from pymongo.collection import ReturnDocument
9090
from pymongo.common import MAX_SUPPORTED_WIRE_VERSION, MIN_SUPPORTED_WIRE_VERSION
9191
from pymongo.cursor import CursorType
@@ -102,6 +102,9 @@
102102
from pymongo.read_preferences import ReadPreference
103103
from pymongo.write_concern import WriteConcern
104104

105+
version = __version__
106+
"""Current version of PyMongo."""
107+
105108

106109
def has_c() -> bool:
107110
"""Is the C extension installed?"""

0 commit comments

Comments
 (0)