Thanks to visit codestin.com
Credit goes to github.com

Skip to content

semanal: fix module_public in the presence of getattr - #11411

Merged
hauntsaninja merged 2 commits into
python:masterfrom
hauntsaninja:modpub
Nov 8, 2021
Merged

semanal: fix module_public in the presence of getattr#11411
hauntsaninja merged 2 commits into
python:masterfrom
hauntsaninja:modpub

Conversation

@hauntsaninja

Copy link
Copy Markdown
Collaborator

This came up in python/typeshed#6171

Comment thread mypy/semanal.py
missing_submodule = False
imported_id = as_id or id

# Modules imported in a stub file without using 'from Y import X as X' will

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it possible to create a test with similar problem as in python/typeshed#6171 ? 🤔

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Agreed. This PR looks good, but a test case would be a nice bonus.

@hauntsaninja

Copy link
Copy Markdown
Collaborator Author

Added a test!

@hauntsaninja
hauntsaninja merged commit 4e2f4ff into python:master Nov 8, 2021
@hauntsaninja
hauntsaninja deleted the modpub branch November 8, 2021 05:02
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
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