Skip to content

Work in Progress CallableType usingpretty_callable_or_overload #19027

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brxno3107
Copy link

Objective
Refactor the generation of error messages involving CallableType by using pretty_callable_or_overload(...) to improve clarity and consistency, as discussed in issue #5490.

Changes Made
Refactored the pos, invert, call, and other related blocks.

Replaced calls to format_type(...) with conditional logic that uses pretty_callable_or_overload(...) when applicable.

Added a test case in operators.test to verify the new message formatting.

Tests
Ran with pytest, and all tests passed successfully.

Copy link
Contributor

github-actions bot commented May 4, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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.

1 participant