MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / python-function-local-from-import.test.ts

File python-function-local-from-import.test.ts

__tests__/python-function-local-from-import.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * A `from x import name` written inside a Python function binds `name` in that
3 * function only (#3229). Calls of `name` elsewhere in the file are not calls of
4 * the import: they run the file's own `def name`. The importing function's own

Callers

nothing calls this directly

Calls 5

describeFunction · 0.85
indexFunction · 0.70
calleesFunction · 0.70
closeMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected