MCPcopy
hub / github.com/python/mypy / pin_version

Method pin_version

setup.py:55–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53
54class CustomPythonBuild(build_py):
55 def pin_version(self) -> None:
56 path = os.path.join(self.build_lib, "mypy")
57 self.mkpath(path)
58 with open(os.path.join(path, "version.py"), "w") as stream:
59 stream.write(f'__version__ = "{version}"\n')
60
61 def run(self) -> None:
62 self.execute(self.pin_version, ())

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected