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

Simplfy checking for patterns #1088

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

rocky
Copy link
Member

@rocky rocky commented Sep 19, 2024

Replace pat.get_head_name() == "SystemPattern"with isinstance(pat, Pattern)`.

I think there are other places where we are using get_head_name() == "System`xxx but that is left for a different time.

Replace `pat.get_head_name() == "System`Pattern"` with isinstance(pat, Pattern)
Copy link
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rocky rocky merged commit b4bcc68 into master Sep 19, 2024
11 checks passed
@rocky rocky deleted the remove-one-more-pattern-codesmell branch September 19, 2024 16:27
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