deputy resolve¶
Traces import alias chains to find the original definition of a symbol.
Usage¶
symbol must be in the form <module_fqn>.<symbol_name> (e.g. deputy.utils.storage.FileMetadata).
Options¶
| Flag | Description |
|---|---|
--auto |
Only stop when multiple choices exist |
--step |
Stop at every step regardless of ambiguity |
--all |
Show all possible resolutions |
--compact |
Compact output with --all (terminal entities only) |
Behaviour¶
- Looks up the module, finds import aliases matching the symbol name.
- Follows each alias to its target module, recurses.
- When the target is a concrete class/function, that's the resolution.
- With
--auto, continues automatically unless there are multiple candidate aliases. - With
--step, pauses at every branch point for manual selection.