$ errors.fyi/flake8/E721 128 namespaces · 4,025 codes
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.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT