Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commite54277f
committed
Compare types in test_orig_head with "is"
This performs an exact type comparison with "is" instead of "==".Most (maybe all?) of the rest of the places where "==" was usedhave been changed previously, but this on fell through the cracks.Like the None object, type objects use reference-based equalitycomparison, and the idiomatic ways to check against them are "is"for exactly comparisons and isinstance/issubclass otherwise.1 parent86fcb1b commite54277f
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 |
| - | |
| 210 | + | |
211 | 211 |
| |
212 | 212 |
| |
213 | 213 |
| |
|
0 commit comments
Comments
(0)