Module stub_type Copy item path Source builtins ๐ Define PyStubType for built-in types based on https://pyo3.rs/v0.22.2/conversions/tables#argument-types collections ๐ either ๐ numpy ๐ pyo3 ๐ rust_decimal ๐ TypeIdentifierRef Represents a reference to a type identifier within a compound type expression.
Tracks which module the type comes from and how it should be qualified. TypeInfo Type information for creating Python stub files annotated by PyStubType trait. TypeRef Indicates the type of import(eg class enum).
from module import type.
name, type name. module, module name(which type defined). ImportKind Represents how a type identifier should be qualified in stub files. ImportRef Indicates what to import.
Module: The purpose is to import the entire module(eg import builtins).
Type: The purpose is to import the types in the module(eg from moduleX import typeX). ModuleRef PyStubType Annotate Rust types with Python type information.