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

Method internal_dep

mypyc/ir/deps.py:22–27  ·  view source on GitHub ↗

Internal source dependency of the capsule that should only be included in the C extensions that depend on the capsule, eg. by importing a type or function from the capsule.

(self)

Source from the content-addressed store, hash-verified

20 return hash(("Capsule", self.name))
21
22 def internal_dep(self) -> SourceDep:
23 """Internal source dependency of the capsule that should only be included in the C extensions
24 that depend on the capsule, eg. by importing a type or function from the capsule.
25 """
26 module = self.name.split(".")[-1]
27 return SourceDep(f"{module}/librt_{module}_api.c", include_dirs=[module])
28
29 def external_dep(self) -> HeaderDep:
30 """External header dependency of the capsule that may be included in external headers of C

Callers 2

Calls 2

SourceDepClass · 0.85
splitMethod · 0.80

Tested by

no test coverage detected