Skip to content

Commit

Permalink
get_children_of_type() type_ replaced with type to avoid conflict wit…
Browse files Browse the repository at this point in the history
…h rtd
  • Loading branch information
alexgorji committed Oct 17, 2023
1 parent ade12c8 commit 3ecad17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tree/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ def get_children(self) -> List['Tree']:
"""
return self._children

def get_children_of_type(self, type_) -> List['Tree']:
def get_children_of_type(self, type) -> List['Tree']:
"""
:return: list of added children of type_.
:return: list of added children of type.
:rtype: List[:obj:`~tree.tree.Tree`]
"""
return [ch for ch in self.get_children() if isinstance(ch, type_)]
return [ch for ch in self.get_children() if isinstance(ch, type)]

def get_coordinates_in_tree(self) -> str:
"""
Expand Down

0 comments on commit 3ecad17

Please sign in to comment.