Skip to content
Snippets Groups Projects
Commit a520be53 authored by Jean-Christophe Fillion-Robin's avatar Jean-Christophe Fillion-Robin
Browse files

STYLE: src/Python: Fix "do not compare types, use 'isinstance()'" issue

parent a97d1d2b
No related branches found
No related tags found
No related merge requests found
[flake8]
max-line-length = 150
ignore =
# E721 do not compare types, use 'isinstance()'
E721,
# F403 'from numpy import *' used; unable to detect undefined names
F403,
# F403 'from vtk import *' used; unable to detect undefined names
......
......@@ -154,7 +154,7 @@ class LUTUtilities(object):
'''
if len(rgba1) != len(rgba2):
return False
if type(rgba1) == type(''):
if isinstance(rgba1, str):
return rgba1 == rgba2
if len(rgba1) == 3 or len(rgba1) == 4:
for i in range(0, len(rgba1)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment