Skip to content

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.

@github-actions
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. ✅

@hauntsaninja
Copy link
Collaborator

Feel free to re-open if you complete this and get CI passing!

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