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

Utilize create_matcherror more in other rules #4408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cavcrosby
Copy link
Contributor

When working on the var-naming rule the other day, I wondered why this rule didn't use the create_matcherror method like other rules. Hence, to keep consistent with other rules, I added the method to rules still explicitly creating MatchError instances.

Copy link

Label error. Requires exactly 1 of: bug, enhancement, major, minor, patch, skip-changelog. Found:

The imports of the MatchError class have been moved under the
TYPE_CHECKING conditional because the rules changed now only rely solely
on the class for typing, and no longer require it at runtime.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant