Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix a bug where inline configurations of error codes would lose their values if accompanied by another inline configuration.#19075

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
wyattscarpenter wants to merge17 commits intopython:master
base:master
Choose a base branch
Loading
fromwyattscarpenter:per-m

Conversation

wyattscarpenter
Copy link
Contributor

The following code produces a name-defined code error, despite our instructions. How can it be?!

# mypy: disable-error-code=name-defined# mypy: strict-equalitya

The answer is, there was a bug that caused all inline configurations, even those that didn't specify any enable/disables, to overwrite the lists of enable/disables. I have now fixed that. I've also added some tests.

I discovered this problem while investigating the ultimately unrelated issue#12342 (itself of tangential interest to something else I was doing), which can now be closed.

@github-actionsGitHub Actions

This comment has been minimized.

@github-actionsGitHub Actions

This comment has been minimized.

@wyattscarpenterwyattscarpenter marked this pull request as draftMay 12, 2025 04:44
@github-actionsGitHub Actions

This comment has been minimized.

@github-actionsGitHub Actions

This comment has been minimized.

@wyattscarpenterwyattscarpenter marked this pull request as ready for reviewMay 12, 2025 18:02
@github-actionsGitHub Actions
Copy link
Contributor

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

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@wyattscarpenter

[8]ページ先頭

©2009-2025 Movatter.jp