KEMBAR78
Don't use ModuleType.__getattr__ if we know module symbols by JukkaL · Pull Request #11597 · python/mypy · GitHub
Skip to content

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Nov 23, 2021

python/typeshed#6302 added __getattr__, but we don't want to always
use it, as it can result in undefined references to module attributes
being undetected.

This is an alternative to python/typeshed#6357.

Tested manually with a recent typeshed.

python/typeshd#6302 added `__getattr__`, but we don't want to always
use it, as it can result in undefined references to module attributes
being undetected.

This is an alternative to python/typeshed#6357.

Tested manually with a recent typeshed.
@JukkaL JukkaL merged commit 8610329 into master Nov 23, 2021
@JukkaL JukkaL deleted the module-getattr branch November 23, 2021 10:56
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
)

python/typeshd#6302 added `__getattr__`, but we don't want to always
use it, as it can result in undefined references to module attributes
being undetected.

This is an alternative to python/typeshed#6357.

Tested manually with a recent typeshed.
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