Skip to content

Make --strict-equality stricter with literals #7310

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

Merged
merged 2 commits into from
Aug 9, 2019

Conversation

ilevkivskyi
Copy link
Member

Fixes #6672

A possible downside is that error messages may be scarier for new users, but on the other hand maybe more people will learn about Literal.

Copy link
Collaborator

@msullivan msullivan left a comment

Choose a reason for hiding this comment

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

I like this

@msullivan msullivan merged commit 4ff341f into python:master Aug 9, 2019
@ilevkivskyi ilevkivskyi deleted the strict-eq-literals branch August 9, 2019 18:56
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.

--strict-equality should work with literal types
2 participants