Say I have two variables:
a = 123
b = 234
I want to compare their type. Clearly the obvious way is:
type(a) == type(b)
However, pylint gives me a warning, which I would like to avoid if possible:
Using type() instead of isinstance() for a typecheck. (unidiomatic-typecheck)
(I believe this isn't specifically warning about my use.)
In the case of comparing two variable types, isinstance can't be used, I believe.
How do I compare the type of two variables without generating PyLint warnings?