stubpy — public API

The names exported from the top-level stubpy package form the stable public interface. All other names are internal and may change between minor versions.

Quick reference

Name

Purpose

generate_stub()

Load a source file, generate a stub, and write it to disk.

StubContext

Run-scoped state container; one instance per generate_stub call.

AliasEntry

Named tuple pairing an annotation object with its alias string.

Full documentation for each name lives in its own module page: