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

Method __new__

pymongo/common.py:1080–1082  ·  view source on GitHub ↗
(cls, *version: int)

Source from the content-addressed store, hash-verified

1078 """A class that can be used to compare version strings."""
1079
1080 def __new__(cls, *version: int) -> Version:
1081 padded_version = cls._padded(version, 4)
1082 return super().__new__(cls, tuple(padded_version))
1083
1084 @classmethod
1085 def _padded(cls, iter: Any, length: int, padding: int = 0) -> list[int]:

Callers

nothing calls this directly

Calls 1

_paddedMethod · 0.80

Tested by

no test coverage detected