Skip to content

Commit

Permalink
fix: fix typo in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Apr 14, 2023
1 parent 6a1b89d commit 669fe5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/igraph/drawing/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get(self, v):
if isinstance(v, str):
result = color_name_to_rgba(v)
elif hasattr(v, "__iter__"): # lists, tuples etc
return result # no need to cache
return v # no need to cache
else:
if v < 0:
raise IndexError("color index must be non-negative")
Expand Down

0 comments on commit 669fe5b

Please sign in to comment.