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

Function to_bytes

pygit2/utils.py:55–59  ·  view source on GitHub ↗
(
    s: str | bytes | os.PathLike[str] | os.PathLike[bytes],
    encoding: str = 'utf-8',
    errors: str = 'strict',
)

Source from the content-addressed store, hash-verified

53
54@overload
55def to_bytes(
56 s: str | bytes | os.PathLike[str] | os.PathLike[bytes],
57 encoding: str = 'utf-8',
58 errors: str = 'strict',
59) -> bytes: ...
60@overload
61def to_bytes(
62 s: Union['ffi.NULL_TYPE', None],

Callers 15

str_to_bytesFunction · 0.85
__setitem__Method · 0.85
get_multivarMethod · 0.85
add_fileMethod · 0.85
parse_boolMethod · 0.85
parse_intMethod · 0.85
optionFunction · 0.85
__init__Method · 0.85
hashfileMethod · 0.85
load_filter_listMethod · 0.85
set_headMethod · 0.85
blameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…