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

fix: py38 warning about 'is' #228

Closed
wants to merge 1 commit into from
Closed

Conversation

2kjiejie
Copy link

Fix the SyntaxWarning in Python 3.8 or higher (#210 ):
SyntaxWarning: "is" with a literal. Did you mean "=="?

I guess we can directly compare the type of x and y to avoid the special integer case.

@jamesls
Copy link
Member

jamesls commented Jan 20, 2022

Rebased on the latest develop branch, looks like the tests are failing. In general I'm not sure we can require that the types must be exact so we'd need to find another approach here.

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