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

Adapt is-macro for a few enums #3182

Merged
merged 8 commits into from
Feb 24, 2023
Merged

Conversation

youknowone
Copy link
Contributor

No description provided.

typing_usage: self.bindings[*index].typing_usage,
kind: BindingKind::Nonlocal,
..binding
let b = &self.bindings[*index];
Copy link
Member

Choose a reason for hiding this comment

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

Nit: existing or existing_binding instead of b?

@@ -203,7 +203,7 @@ pub fn check_path(
|| settings
.rules
.iter_enabled()
.any(|rule_code| matches!(rule_code.lint_source(), LintSource::NoQa))
.any(|rule_code| rule_code.lint_source().is_no_qa())
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we rename this variant to Noqa.

@charliermarsh charliermarsh enabled auto-merge (squash) February 24, 2023 03:58
@charliermarsh charliermarsh merged commit da98fab into astral-sh:main Feb 24, 2023
@youknowone youknowone deleted the is-macro branch February 24, 2023 12:46
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