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

Method write

mypy/metastore.py:46–53  ·  view source on GitHub ↗

Write a metadata entry. If mtime is specified, set it as the mtime of the entry. Otherwise, the current time is used. Returns True if the entry is successfully written, False otherwise.

(self, name: str, data: bytes, mtime: float | None = None)

Source from the content-addressed store, hash-verified

44
45 @abstractmethod
46 def write(self, name: str, data: bytes, mtime: float | None = None) -> bool:
47 """Write a metadata entry.
48
49 If mtime is specified, set it as the mtime of the entry. Otherwise,
50 the current time is used.
51
52 Returns True if the entry is successfully written, False otherwise.
53 """
54
55 @abstractmethod
56 def remove(self, name: str) -> None:

Callers 1

writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected