Skip to content

Migrate checkstrformat to use ErrorMessage class #15117

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

tusharsadhwani
Copy link
Contributor

A granular reimplementation of #12004

Changes

  • Migrates error codes in checkstrformat.py to use ErrorMessage objects stored in message_registry
  • Modifies fail method in MessageBuilder to accept ErrorMessage objects (the overload is similar to the one here).

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

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

@tusharsadhwani
Copy link
Contributor Author

Tagging @hauntsaninja since the self.fail() signature change is based on your code. PTAL?

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