API Reference¶
Every public name of the stubpy package and of stubpy.extend. Names starting with an
underscore and the modules behind them are internal and may change without notice.
Functions¶
See Functions.
Build the stub of one module and return it, writing nothing. |
|
Write stubs for files, folders, packages or modules. |
|
Compare the stubs on disk with what would be generated. |
|
Read |
|
Copy runtime docstrings into a hand-written stub of a compiled module. |
Configuration¶
See Configuration.
Frozen dataclass holding every option of a run. |
|
Field type of |
|
Which modules may be imported: |
|
Field type of |
|
Field type of |
Results¶
Stub text and diagnostics of one module. |
|
Outcome of a |
|
One message recorded while building a stub. |
|
Severity of a diagnostic: |
Hints¶
See Hints.
Decorator that sets the stub signature of a callable. |
|
Decorator that sets only the return type. |
|
Decorator that leaves a symbol out of the stub. |
Extension namespace¶
See stubpy.extend.
Render your own annotation types. |
|
Convert an annotation to stub text. |
|
Parse source into |
|
Merge live and parsed data into a |
|
Every symbol of a module, by name and kind. |
|
What the parser found in a source file. |
|
|
Symbol entries of the table. |
Kind of a symbol. |
|
State shared by one run. |
|
A registered type alias. |
|
Collects the diagnostics of a run. |
|
Pipeline stage that raised a diagnostic. |
stubpy.__version__ holds the installed version string.