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
Version: redis-py version 4.4.0 (redis version shouldnt matter but i'm using redis-stack 6.2.4-v3)
Platform: python version 3.10.9 (but should effect all versions) on wsl Ubuntu 20.04.5 LTS
Description: none of the redis graph classes check the types when checking equality
import redis.commands.graph as redisGraph foo = redisGraph.Node() foo == None # this line causes the error
AttributeError: 'NoneType' object has no attribute 'label'
you get the same error when checking against any type that is not a Node
Node
it also happens with the Edge class
Edge
bar = redisGraph.Edge(foo,"",foo) bar == ""
AttributeError: 'str' object has no attribute 'src_node'
and also the Path class
Path
baz = redisGraph.Path([],[]) baz == 4
AttributeError: 'int' object has no attribute 'nodes'
i suspect adding this sort of code in would fix it
# Check that the rhs the correct type if not isinstance(rhs, type(self)): return False
The text was updated successfully, but these errors were encountered:
__eq__
Successfully merging a pull request may close this issue.
Version: redis-py version 4.4.0 (redis version shouldnt matter but i'm using redis-stack 6.2.4-v3)
Platform: python version 3.10.9 (but should effect all versions) on wsl Ubuntu 20.04.5 LTS
Description: none of the redis graph classes check the types when checking equality
you get the same error when checking against any type that is not a
Node
it also happens with the
Edge
classand also the
Path
classi suspect adding this sort of code in would fix it
The text was updated successfully, but these errors were encountered: