MCPcopy Index your code
hub / github.com/python/mypy / hash_digest_bytes

Function hash_digest_bytes

mypy/util.py:582–587  ·  view source on GitHub ↗

Compute a hash digest of some data. Similar to above but returns a bytes object.

(data: bytes)

Source from the content-addressed store, hash-verified

580
581
582def hash_digest_bytes(data: bytes) -> bytes:
583 """Compute a hash digest of some data.
584
585 Similar to above but returns a bytes object.
586 """
587 return hashlib.sha1(data).digest()
588
589
590def parse_gray_color(cup: bytes) -> str:

Callers 2

write_cacheFunction · 0.90
transitive_dep_hashFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…