When performing isinstance checks, an identity comparison is automatically done, but we don't use isinstance here because we need strict identity equality *without allowing subtypes*. Comparing type() == type() is a value comparison, but could produce effectively the same results as an identity comparison, usually, despite being semantically off. pycodestyle learned to detect this and warn you to do strict identity comparison.pull/12055/head
parent
404312c6dd
commit
d4615369ff
2 changed files with 5 additions and 5 deletions
Loading…
Reference in new issue