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

Method _padded

pymongo/common.py:1085–1090  ·  view source on GitHub ↗
(cls, iter: Any, length: int, padding: int = 0)

Source from the content-addressed store, hash-verified

1083
1084 @classmethod
1085 def _padded(cls, iter: Any, length: int, padding: int = 0) -> list[int]:
1086 as_list = list(iter)
1087 if len(as_list) < length:
1088 for _ in range(length - len(as_list)):
1089 as_list.append(padding)
1090 return as_list
1091
1092 @classmethod
1093 def from_string(cls, version_string: str) -> Version:

Callers 3

__new__Method · 0.80
from_stringMethod · 0.80
from_version_arrayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected