MCPcopy Create free account
hub / github.com/numpy/numpy / get_annotations

Function get_annotations

numpy/core/code_generators/numpy_api.py:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def get_annotations():
22 # Convoluted because we can't import from numpy.distutils
23 # (numpy is not yet built)
24 genapi_py = os.path.join(os.path.dirname(__file__), 'genapi.py')
25 spec = importlib.util.spec_from_file_location('conv_template', genapi_py)
26 mod = importlib.util.module_from_spec(spec)
27 spec.loader.exec_module(mod)
28 return mod.StealRef, mod.MinVersion
29
30
31StealRef, MinVersion = get_annotations()

Callers 1

numpy_api.pyFile · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected