anytree icon indicating copy to clipboard operation
anytree copied to clipboard

Documentation example for Utilities confusing

Open ArneMeier opened this issue 2 years ago • 0 comments

I might misunderstand something, but the example for, e.g., leftsibling in the documentation of anytree/util/__init__.py states two things

  1. It suggest only from anytree import Node
  2. To directly call, e.g., leftsibling(dan)

For me, both did not work out. I had to

  1. Import the method via from anytree.util import leftsibling
  2. Do a, e.g., print(leftsibling(joe)) in order to get the desired output.

ArneMeier avatar Nov 25 '22 13:11 ArneMeier