Skip to main content

Module python

Module python 

Source
Expand description

Python: packages, imports, risks, the PyPI-to-crate table, and exported functions and classes with type hints mapped into the TS-like type dialect.

Enums§

Resolution
Where a Python import points.

Functions§

discover
exports
Public module-level functions and classes, honoring __all__.
infer_numbers
Unannotated parameters the body uses as numbers (r - g, x * 0.5, max(r, g), x < 1) become number: generated inputs then fit what the code expects.
lookup
The Rust counterpart of a PyPI package (or import name).
resolve
Resolves pkg.mod, .mod and ..mod against the files of the workspace.
scan
to_ts_type
A Python type hint in the TS-like dialect: list[str] -> string[], Optional[int] -> int | undefined, Callable[...] -> a function type (which keeps the export in Python).