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

Stubgen: Added basic support for importing modules that base classes are a member of #3704

Closed
wants to merge 1 commit into from

Conversation

shangxiao
Copy link

@shangxiao shangxiao commented Jul 12, 2017

Resolves #1782

I've taken the liberty of adding a very basic check to match imports with qualified base classes and adding those to the list of imports to be added to the stub.

Disclaimer: I wouldn't consider myself a Python expert. I'm not sure I've seen any other way to declare or reassign imports that would break this check so I wouldn't know if there was any extra processing required here. :)

@shangxiao shangxiao changed the title Resolves #1782: Added basic support for importing base classes as members of an imported module Stubgen: Added basic support for importing base classes as members of an imported module Jul 12, 2017
@gvanrossum
Copy link
Member

Sorry, we're busy reviewing, we'll get to this when we can.

@shangxiao
Copy link
Author

No rush was just curious.

@shangxiao shangxiao changed the title Stubgen: Added basic support for importing base classes as members of an imported module Stubgen: Added basic support for importing modules that base classes are a member of Jul 14, 2017
@ilevkivskyi
Copy link
Member

I am closing this in favor of recently merged PR #3169 that also fixes this problem.

@rapilabs I am sorry to close this, and thank you for your help anyway!

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