Skip to content

Implement miscellaneous fixes for partially-defined check - #14175

Merged
ilinum merged 12 commits into
python:masterfrom
ilinum:partial/misc-fixes
Nov 25, 2022
Merged

ilinum merged 12 commits into
python:masterfrom
ilinum:partial/misc-fixes

Conversation

@ilinum

@ilinum ilinum commented Nov 23, 2022 •

Copy link
Copy Markdown
Collaborator

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.

@ilevkivskyi ilevkivskyi left a comment

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.

LG, but there are couple questions about dotted imports.

Comment thread mypy/partially_defined.py Resolved
@ilinum

ilinum commented Nov 25, 2022

Copy link
Copy Markdown
Collaborator Author

LG, but there are couple questions about dotted imports.

Good catch on these! Thanks!

@github-actions

This comment has been minimized.

Comment thread mypy/partially_defined.py Resolved
@github-actions

Copy link
Copy Markdown
Contributor

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

@ilinum

ilinum commented Nov 25, 2022

Copy link
Copy Markdown
Collaborator Author

@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