MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _resource_bytesio

Function _resource_bytesio

pre_commit/languages/ruby.py:27–29  ·  view source on GitHub ↗
(filename: str)

Source from the content-addressed store, hash-verified

25
26
27def _resource_bytesio(filename: str) -> IO[bytes]:
28 files = importlib.resources.files('pre_commit.resources')
29 return files.joinpath(filename).open('rb')
30
31
32@functools.lru_cache(maxsize=1)

Callers 2

test_archive_root_statFunction · 0.90
_extract_resourceFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_archive_root_statFunction · 0.72