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

Add error code for name mistaches in named tuples and TypedDicts #9811

Merged
merged 2 commits into from Dec 16, 2020

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Dec 16, 2020

This gives a new error code for code like this:

# Foo and Bar don't match
Foo = NamedTuple("Bar", [...])

Since these errors generally don't cause runtime issues, some users may want to
disable these errors. It's now easy to do using the error code name-match.

This can generate many errors in large codebases, so make it possible
to disable it.
@JukkaL JukkaL merged commit 990b6a6 into master Dec 16, 2020
@JukkaL JukkaL deleted the name-mismatch-error-code branch December 16, 2020 18:54
@python python deleted a comment Dec 16, 2020
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.

None yet

2 participants