Skip to content

[Python] Accessing subtypes (eg. Vessel) isn't ergonomic #626

@object-Object

Description

@object-Object

Many kRPC types can't be directly imported. For example, the Vessel type is only accessible like so:

from krpc.spacecenter import SpaceCenter

vessel: SpaceCenter.Vessel = ...

It would be convenient if, for example, the spacecenter.pyi stub could export those types directly. As an example, in my personal kRPC workspace, I've added additional (non-comprehensive) files to make these types easier to access.

(I'm unsure if this is an issue with base kRPC or just nullprofile's fork, though I suspect the former.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions