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

Better diagnostic for conditional function mismatch #13604

Merged
merged 4 commits into from Sep 26, 2022

Conversation

hauntsaninja
Copy link
Collaborator

Fixes #10575

@github-actions

This comment has been minimized.

@hauntsaninja
Copy link
Collaborator Author

Actually, this should use pretty_callable

@hauntsaninja hauntsaninja marked this pull request as draft September 4, 2022 06:24
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

pyinstrument (https://github.com/joerick/pyinstrument)
+ pyinstrument/vendor/decorator.py:55: note: Original:
+ pyinstrument/vendor/decorator.py:55: note:     def getfullargspec(func: object) -> FullArgSpec
+ pyinstrument/vendor/decorator.py:55: note: Redefinition:
+ pyinstrument/vendor/decorator.py:55: note:     def getfullargspec(f: Any) -> Any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant