We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hasattr
Node
True
hasattr always returns True
Calling hasattr on Node always returns True
hasattr should return True only on valid nodes/attributes or implement a more clear way to check child nodes other than child_nodes()
child_nodes()
As hasattr calls getattr https://docs.python.org/3/library/functions.html#hasattr and Node always returns a attribute even though it is not valid (as node path validation happens only when a node is called.
getattr
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
hasattr
always returnsTrue
How to reproduce
Calling
hasattr
onNode
always returnsTrue
Environment info
Device/system information (if applicable)
Additional information
hasattr
should returnTrue
only on valid nodes/attributes or implement a more clear way to check child nodes other thanchild_nodes()
As
hasattr
callsgetattr
https://docs.python.org/3/library/functions.html#hasattr andNode
always returns a attribute even though it is not valid (as node path validation happens only when a node is called.The text was updated successfully, but these errors were encountered: