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

Implement miscellaneous fixes for partially-defined check #14175

Merged
merged 12 commits into from
Nov 25, 2022

Conversation

ilinum
Copy link
Collaborator

@ilinum ilinum commented Nov 23, 2022

These are the issues that I've found using mypy-primer.

You should be able to review this PR commit-by-commit. Each commit includes the relevant tests:

  • Process imports correctly
  • Support for function names
  • Skip stub files (this change has no tests)
  • Handle builtins and implicit module attrs (e.g. str and __doc__)
  • Improved support for lambdas.

@github-actions

This comment has been minimized.

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

LG, but there are couple questions about dotted imports.

mypy/partially_defined.py Show resolved Hide resolved
test-data/unit/check-partially-defined.test Outdated Show resolved Hide resolved
@ilinum
Copy link
Collaborator Author

ilinum commented Nov 25, 2022

LG, but there are couple questions about dotted imports.

Good catch on these! Thanks!

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@ilinum
Copy link
Collaborator Author

ilinum commented Nov 25, 2022

@ilevkivskyi I'm going to merge this because I'm pretty sure it's correct now but please take a look at the imports implementation if you get the chance :) I'll send a follow-up PR if something is actually broken.

@ilinum ilinum merged commit d58a851 into python:master Nov 25, 2022
@ilinum ilinum deleted the partial/misc-fixes branch November 25, 2022 21:03
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