Skip to content

Conversation

@xaedes
Copy link
Contributor

@xaedes xaedes commented Sep 28, 2021

Description

From the docs it is unclear how to bind internal types as the example only demonstrated an internal enumeration type.
To show that it works the same way for other internal types, the example was updated with an additional simple Pet::Attributes struct type.
The concept of "internal type" is also known as "nested type".
To make it easier finding the relevant part in the documentation, the wording is slightly changed to include "internal type" and "nested type".

Previously discussed at
#2585 (comment)

xaedes and others added 2 commits September 28, 2021 16:29
Previously example only demonstrated internal enumeration type. 
To show that it works for other internal types the same way the example was updated with an additional struct Pet::Attributes type.
@xaedes xaedes changed the title Xaedes patch doc non enum internal Docs: Demonstrate non-enum internal types in example Sep 28, 2021
@Skylion007 Skylion007 merged commit b4e1ab8 into pybind:master Sep 30, 2021
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Sep 30, 2021
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Oct 1, 2021
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.

3 participants