Skip to content

Python SDK invalid typings stub #1817

Closed
@cstruct

Description

@cstruct

The typings stub has multiple issues that generates a lot of errors on usage.

  1. Old version of pyo3-stub-gen with multiple bugs
  2. Invalid order of attrs on IggyClient impl causing:
    2.1. Stubs get a new method instead of __new__ not providing typing for class initialization.
    2.2. Stubs do not respect #(pyos(signature = (...))) not exposing configured defaults.
  3. PyIdentifier is exposed as a Python Enum which is not how it is used, it should be a Union of str and int.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions