Fix type equality checks
Use is/is not instead of == when checking for equality of types. Fixes linter errors that recently appeared in the flake8 checker.
Use is/is not instead of == when checking for equality of types. Fixes linter errors that recently appeared in the flake8 checker.