Skip to content

Commit

Permalink
Use a tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis committed May 30, 2024
1 parent 6996eeb commit 700ed28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurom/core/morphology.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def subtree_types(self):
for section in it:
# A subtree can start from a single branch or as a fork of the same type from a parent
# with different type.
if section.type not in {section.parent.type, subtree_types[-1]}:
if section.type not in (section.parent.type, subtree_types[-1]):
subtree_types.append(section.to_morphio().type)

return subtree_types
Expand Down

0 comments on commit 700ed28

Please sign in to comment.