MCPcopy Create free account
hub / github.com/python/mypy / get_header

Method get_header

mypyc/ir/deps.py:71–73  ·  view source on GitHub ↗

Get the header file path by replacing .c with .h

(self)

Source from the content-addressed store, hash-verified

69 return hash(("SourceDep", self.path))
70
71 def get_header(self) -> str:
72 """Get the header file path by replacing .c with .h"""
73 return self.path.replace(".c", ".h")
74
75
76class HeaderDep:

Callers 3

mypycifyFunction · 0.45

Calls 1

replaceMethod · 0.80

Tested by 1