I don’t understand if this is a bug, a feature, or me just misunderstanding something:
(Pdb) pp excluded_nodes
{PosixPath('/tmp/pytest-of-facundo/pytest-7/test_copyproject_deeptree0/src/dir1/secret1'),
PosixPath('/tmp/pytest-of-facundo/pytest-7/test_copyproject_deeptree0/src/dir2/cache'),
PosixPath('/tmp/pytest-of-facundo/pytest-7/test_copyproject_deeptree0/src/dir2/secret2.txt')}
(Pdb) pp any(parent in excluded_nodes for parent in src_node.parents)
*** NameError: name 'excluded_nodes' is not defined
(Pdb) pp "excluded_nodes" in locals()
True
Why excluded_nodes is not found from inside the any() call?