Skip to content

Convert == None checks to is None#2099

Merged
j9ac9k merged 2 commits intopyqtgraph:masterfrom
ksunden:eq_none
Nov 15, 2021
Merged

Convert == None checks to is None#2099
j9ac9k merged 2 commits intopyqtgraph:masterfrom
ksunden:eq_none

Conversation

@ksunden
Copy link
Copy Markdown
Contributor

@ksunden ksunden commented Nov 15, 2021

No description provided.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Nov 15, 2021

There are a few places in the repo we have != None which would probably be appropriate to grab.

I see two instances in ROI.py, ParameterItem.py (granted that one is part of a string in an exception) and test_dock.py

@ksunden
Copy link
Copy Markdown
Contributor Author

ksunden commented Nov 15, 2021

The ROI ones were addressed by #2095

@ksunden
Copy link
Copy Markdown
Contributor Author

ksunden commented Nov 15, 2021

I do not care about the exception one, I think its current state is readable and gets the point across, and if anything changing it would be less readable in this case.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Nov 15, 2021

That's legit, LGTM, another PR can capture the ==/!= True/False bits Merging this, thanks @ksunden !

@j9ac9k j9ac9k merged commit f8d5134 into pyqtgraph:master Nov 15, 2021
ntjess pushed a commit to ntjess/pyqtgraph that referenced this pull request Dec 10, 2021
* Convert == None checks to is None

* test_dock instance of != None
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