MCPcopy Create free account
hub / github.com/KmBase/ScienceReading / getimport

Function getimport

embedded/site-packages/dill/source.py:718–766  ·  view source on GitHub ↗

get the likely import string for the given object obj is the object to inspect If verify=True, then test the import string before returning it. If builtin=True, then force an import for builtins where possible. If enclosing=True, get the import for the outermost enclosing callable.

(obj, alias='', verify=True, builtin=False, enclosing=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

getsourceFunction · 0.85
_importableFunction · 0.85
_closuredimportFunction · 0.85
likely_importFunction · 0.85

Calls 5

outermostFunction · 0.85
_namespaceFunction · 0.85
_getimportFunction · 0.85
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected