Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
InnocentBug committed Sep 29, 2023
1 parent 72937e3 commit 04281eb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/cript/nodes/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,18 @@ class ReturnTuple:
if only_this_node_full:
my_children = self.find_children({}, search_depth=1)
# Create the list of UUID of the direct children (search_depth==1)
only_not_uuid = [str(child.uuid) for child in my_children]
only_not_uuid = []
for child in my_children:
try:
only_not_uuid.append(str(child.uuid)) # type: ignore
except AttributeError: # Technically, BaseNode does not have uuid
pass
# Add the self uuid for this node (if available)
only_not_uuid += [str(self.uuid)]
try:
only_not_uuid.append(str(self.uuid)) # type: ignore
except AttributeError: # Technically, BaseNode does not have uuid
pass

NodeEncoder.only_not_uuid = only_not_uuid

try:
Expand Down

0 comments on commit 04281eb

Please sign in to comment.