--strict-comparison seems to assume that pathlib.Path objects can be equal to anything.
To Reproduce (playground)
# run with --strict-equalityfrompathlibimportPathclassA: pass'x'==1# comparison-overlap: this is always falseA() ==1# comparison-overlap: this is always falsePath('x') ==1# fine for mypyExpected Behavior
Both lines should trigger 'non-overlapping equality check'
Actual Behavior
Only 'x' == 1 triggers 'non-overlapping equality check'
--strict-comparisonseems to assume thatpathlib.Pathobjects can be equal to anything.To Reproduce (playground)
Expected Behavior
Both lines should trigger 'non-overlapping equality check'
Actual Behavior
Only
'x' == 1triggers 'non-overlapping equality check'