Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more known types for better generation with pybind11 #18269

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

InvincibleRMC
Copy link
Contributor

Adds more known types for stubgenc when it is a c module.

Comment on lines +263 to +264
"TypeIs",
"TypeGuard",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are TypeIs, TypeGuard, Never and NoReturn common in c extensions? If they are not commonly used I think it is better to leave them out.

Comment on lines +267 to +268
"os": ["PathLike"],
"pathlib": ["Path"],
Copy link
Collaborator

@hamdanal hamdanal Dec 21, 2024

Choose a reason for hiding this comment

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

If it is easy enough please add a test for things imported from modules other than typing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants