flake8 · flake8/E721
E721
Do Not Compare Types, Use isinstance()
Types are compared with == (e.g. type(x) == int) instead of using isinstance(). isinstance() is preferred as it supports subclass checks.
Types are compared with == (e.g. type(x) == int) instead of using isinstance(). isinstance() is preferred as it supports subclass checks.