MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / from_version_array

Method from_version_array

pymongo/common.py:1133–1138  ·  view source on GitHub ↗
(cls, version_array: Any)

Source from the content-addressed store, hash-verified

1131
1132 @classmethod
1133 def from_version_array(cls, version_array: Any) -> Version:
1134 version = list(version_array)
1135 if version[-1] < 0:
1136 version[-1] = -1
1137 version = cls._padded(version, 3)
1138 return Version(*version)
1139
1140 def at_least(self, *other_version: Any) -> bool:
1141 return self >= Version(*other_version)

Callers 2

from_clientMethod · 0.80
async_from_clientMethod · 0.80

Calls 2

_paddedMethod · 0.80
VersionClass · 0.70

Tested by

no test coverage detected