Skip to content

Conversation

@zcbenz
Copy link
Collaborator

@zcbenz zcbenz commented Dec 21, 2025

After bumping version of nanobind with #2896 the structure of type stubs have changed.

Before:

python/mlx/core
├── __init__.pyi
├── cuda
│   └── __init__.pyi
├── distributed
│   └── __init__.pyi
├── fast
│   └── __init__.pyi
├── fft
│   └── __init__.pyi
├── linalg
│   └── __init__.pyi
├── metal
│   └── __init__.pyi
└── random
    └── __init__.pyi

After:

python/mlx/core
├── __init__.pyi
└── core
    ├── __init__.pyi
    ├── cuda.pyi
    ├── distributed.pyi
    ├── fast.pyi
    ├── fft.pyi
    ├── linalg.pyi
    ├── metal.pyi
    └── random.pyi

Which was caused by wjakob/nanobind#892. With this PR the structure will become:

python/mlx/core
├── __init__.pyi
├── cuda.pyi
├── distributed.pyi
├── fast.pyi
├── fft.pyi
├── linalg.pyi
├── metal.pyi
└── random.pyi

Copy link
Member

@angeloskath angeloskath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thanks!

@zcbenz zcbenz merged commit b01fc7e into ml-explore:main Dec 22, 2025
26 of 28 checks passed
@zcbenz zcbenz deleted the fix-stubgen branch December 22, 2025 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants