MCPcopy Create free account
hub / github.com/libgit2/pygit2 / parse_int

Method parse_int

pygit2/config.py:285–290  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

283
284 @staticmethod
285 def parse_int(text: str) -> int:
286 res = ffi.new('int64_t *')
287 err = C.git_config_parse_int64(res, to_bytes(text))
288 check_error(err)
289
290 return res[0]
291
292 #
293 # Static methods to get specialized version of the config

Callers 1

test_parsingFunction · 0.80

Calls 2

to_bytesFunction · 0.85
check_errorFunction · 0.85

Tested by 1

test_parsingFunction · 0.64