platformio-core icon indicating copy to clipboard operation
platformio-core copied to clipboard

`__eq__`s check for the class of `other`s

Open MacDada opened this issue 1 year ago • 0 comments

Fixes errors like…

AttributeError: 'Version' object has no attribute 'owner':
  File "/usr/local/Cellar/platformio/6.1.6/libexec/lib/python3.11/site-packages/platformio/package/meta.py", line 188

…when trying to compare the objects to other objects that are not of the same class.


I came up with the issue when trying to debug my PIO's extra script with var_dump:

Import("env")
env.Execute("$PYTHONEXE -m pip install 'var_dump @ git+https://github.com/sha256/python-var-dump@972d05bff13fd57366f56bd36b70e1ab15d6173d' --force-reinstall")
from var_dump import var_dump
var_dump(env.PioPlatform())

MacDada avatar May 13 '23 13:05 MacDada