Skip to content

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

Closed
shangxiao wants to merge 1 commit into
python:masterfrom
shangxiao:resolve-imports
Closed

shangxiao wants to merge 1 commit into
python:masterfrom
shangxiao:resolve-imports

Conversation

@shangxiao

@shangxiao shangxiao commented Jul 12, 2017 •

Copy link
Copy Markdown

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
Copy Markdown
Member

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

@shangxiao

Copy link
Copy Markdown
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
Copy Markdown
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