anytree icon indicating copy to clipboard operation
anytree copied to clipboard

anytree.config.ASSERTIONS does not work if set manually

Open kayjan opened this issue 6 months ago • 0 comments

The assertions are hard coded to False (already pre-imported from env var) and unable to set to True if I want it to be enabled, following the docs https://anytree.readthedocs.io/en/latest/tricks/consistencychecks.html

Image

From my experience, if it helps, the only way to set it is through environment variables before importing anytree :) Perhaps the documentation can be updated

kayjan avatar Oct 21 '25 17:10 kayjan