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

Avoid type issues with _build_ext being Any #4599

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Aug 26, 2024

Summary of changes

When Cython.Distutils.build_ext is not installed, _build_ext is Any which trickles down issues. Like being an invalid type to subclass, missing attributes, always matching the first overload, etc.

Pull Request Checklist

@@ -183,12 +183,11 @@ def get_build_ext_cmd(self, optional: bool, **opts):
"eggs.c": "#include missingheader.h\n",
".build": {"lib": {}, "tmp": {}},
}
path.build(files)
path.build(files) # type: ignore[arg-type] # jaraco/path#232
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@abravalheri abravalheri merged commit defa725 into pypa:main Aug 27, 2024
19 of 21 checks passed
@abravalheri
Copy link
Contributor

Thank you very much!

@Avasam Avasam deleted the Make-_build_ext-not-any branch August 27, 2024 14:15
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