PackageResult¶
- class PackageResult(stubs_written: list[Path] = <factory>, failed: list[tuple[~pathlib.Path, list[~stubpy.diagnostics.Diagnostic]]]=<factory>)[source]¶
Bases:
objectOutcome of a
generate_package()run.- failed¶
One entry per source file that raised an exception or accumulated ERROR-level diagnostics. Each entry is
(source_path, diagnostics).- Type:
list of tuple[Path, list[Diagnostic]]
Examples
>>> r = PackageResult() >>> r.summary() 'Generated 0 stubs, 0 failed.'
See also
Public API reference — overview of all public names.