Edges
The edges expand and trace follow, from the edge registry.
Implemented edges
| Edge |
Applies to |
Ceiling |
Determinism |
members |
class, module |
static_definitions |
jedi_local |
callees |
function, method |
static_calls |
goto |
imported_by |
module |
static_imports |
ast |
subclasses |
class |
literal_subclassing |
goto |
superclasses |
class |
declared_bases |
goto |
imports |
module |
static_imports |
goto |
enclosing_scope |
attribute, class, enum_member, function, method, property, variable |
exact |
jedi_local |
submodules |
module |
on_disk_modules |
filesystem |
re_exports |
attribute, class, enum_member, function, method, property, variable |
package_reexports |
ast |
Deferred edges
Reference edges, deferred until an indexed reference backend lands (expand answers them with reason: "deferred_reference_backend"): callers, decorated_by, decorates, overridden_by, overrides, passed_by, read_by, references, written_by.
Ceilings
| Ceiling |
Complete over |
declared_bases |
the bases written in the class statement; bases added at runtime are not included, and bases that don't resolve to exactly one class are listed in unresolved_superclasses, an ambiguous base (imported by a try/except shim, or rebound by an if/else) among them (#1057) |
literal_subclassing |
project classes whose class statement names this class as a base, resolved as superclasses resolves it: a class whose base is ambiguous (imported by a try/except shim, or rebound by an if/else) is not listed under any of its candidates (#1057). Classes built with type(), class factories or __init_subclass__ registration are not included. The scan skips virtual environments (a directory holding pyvenv.cfg, whatever its name) and directories named like caches or build output (build, dist, env, venv, .tox and the like) unless they hold __init__.py or __init__.pyi; a PEP 420 namespace package with such a name is not scanned (#1104) |
on_disk_modules |
modules and subpackages present on disk under the package; entries added to __path__ at runtime are not included |
package_reexports |
import bindings written in source in the public modules of the symbol's own package (#712); re-exports from other packages and names provided lazily by a module __getattr__ are not included |
static_calls |
calls whose target static analysis resolves; dynamic calls are counted in unresolved_call_sites, not listed |
static_definitions |
definitions written in source: a class body (methods, nested classes, class-level assignments) or a module's top level. Instance attributes assigned in methods (self.x = ...) and anything injected at runtime (metaclass, setattr, __getattr__, type(), __init_subclass__) are not included |
static_imports |
import statements written in source; importlib / __import__ with a computed name is not included. A stub's (.pyi) own imports are declarations, not runtime imports: imported_by doesn't count them, while imports on a stub module lists them (#933). For imported_by, the scan skips virtual environments (a directory holding pyvenv.cfg, whatever its name) and directories named like caches or build output (build, dist, env, venv, .tox and the like) unless they hold __init__.py or __init__.pyi; a PEP 420 namespace package with such a name is not scanned (#1104) |
Determinism
| Determinism |
Edges |
Guarantee |
filesystem |
submodules |
read from a directory listing, without calling Jedi; the same result in every process for the same files on disk |
ast |
imported_by, re_exports |
read from the syntax tree of the project's files, without calling Jedi; the same result in every process for the same source |
jedi_local |
members, enclosing_scope |
read by Jedi from the source's own file, with no cross-file inference; the same result in every process for the same source |
goto |
callees, subclasses, superclasses, imports |
each adjacent is a Jedi forward goto target. Project-scope adjacents are the same in every process; an external (stdlib or installed) target behind a try/except import shim may differ between processes (#419), so don't compare external adjacents across sessions. A name bound to more than one target (a base imported by a try/except shim, or rebound by an if/else) resolves to none, never to a pick (#1057) |