Skip to content

Conversation

@ax3l
Copy link
Contributor

@ax3l ax3l commented Jan 22, 2026

Fixes #266
Fixes #272

Takes the tests from #272 and the simple fix from the large PR in #263.
Credits to @gentlegiantJGC and @sarlinpe 🙏

gentlegiantJGC and others added 2 commits January 21, 2026 23:35
* Remove current module from nested types

Types like union types have nested types in them.
The current implementation only removes the current module name from the root type name.
This modifies that behaviour so that it expands nested types recursively.

* Add tests

* Reorder variant types

pybind11 requires that arguments are default constructable but Foo is not

* Reorder types in union

* Add nested types to all

* Add missing stubs
@ax3l
Copy link
Contributor Author

ax3l commented Jan 22, 2026

@skarndev I let you do a final review & merge on this one.

@ax3l ax3l merged commit c3fcfa0 into pybind:master Jan 22, 2026
19 checks passed
@ax3l ax3l deleted the fix-nested-qualname-simple branch January 22, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pybind11 filesystem: import os is missing in files with os.PathLike in stubs

5 participants