Closed delatrie closed 1 year ago
The linting rule E721 was changed in pycodestyle v2.11 referred by flake8 v6.1.0. See more details here and here.
Now these two forms are acceptable:
isinstance(obj, obj_type) type(obj) is obj_type
While this one is not:
type(obj) == obj_type
This PR fixes all occurrences of the unacceptable form in the codebase.
Context
The linting rule E721 was changed in pycodestyle v2.11 referred by flake8 v6.1.0. See more details here and here.
Now these two forms are acceptable:
While this one is not:
This PR fixes all occurrences of the unacceptable form in the codebase.