Skip to content

Stub file contains typing.Any type hint for many signatures #12

@smartgoo

Description

@smartgoo

The generated stub file kaspa.pyi contains typing.Any type hint for many function signatures. For example:

def disconnect(self) -> typing.Any:
        ...

def start(self) -> typing.Any:
        ...

The API Reference pages of the docs site is built from this stub file. As a result, Any is shown in various function signatures. The stub file should show None or the correct type, instead of the general Any.

Current stub generation process uses pyo3-stub-gen to auto generate the stub file. This will likely involve some sort of override.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions