-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
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
Python bindings for query.filter_<>() behaves strangely #1086
Comments
First problem |
Right, For the first two examples, you can call For the third one, I guess the two issues here are implementing the str protocol for Reldep objects and potentially supporting regular strings in addition to ists of strings for these methods. |
I create the first PR that resolves the issue partially - #1092. Remaining problem - passing string and not list of strings results in strange behavior ( |
It looks like that when string is passed |
I've created two draft PR that represents alternative solutions. The first adds an additional overload method to The second adds the method only for Python binding. To fix the issue completely it would require modifying a lot of methods, therefore I would like to know preferable way before implementation. May I ask you for your opinion? |
I personally prefer the additional overload. This makes the API the same across all languages. |
@j-mracek please, check the links, they both go to 1101, but I believe you wanted to go to 1102 I also prefer the solution with the overload. |
The issue is fixed by #1216 |
Following code provides incorrect results - empty query
The text was updated successfully, but these errors were encountered: