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
参考代码 2.9.3 版本:https://github.com/leancloud/python-sdk/blob/v2.9.3/leancloud/query.py#L117
query = Query(queries[0]._query_class._class_name)
In [1]: from leancloud import Query In [2]: class MyQuery(Query): ...: pass ...: In [3]: type(MyQuery('User').or_(MyQuery('User'), MyQuery('User'))) Out[3]: leancloud.query.Query
In [1]: from leancloud import User In [2]: User.query._query_class Out[2]: leancloud.user.User In [3]: User.query.or_(User.query, User.query)._query_class Out[3]: leancloud.object_._User
The text was updated successfully, but these errors were encountered:
以上问题会给通过继承 Object 和 Query 来自定义功能带来困扰。
Sorry, something went wrong.
SDK 的设计当时没有考虑 Query 的子类化。(当然很欢迎提 PR
weakish
No branches or pull requests
参考代码 2.9.3 版本:https://github.com/leancloud/python-sdk/blob/v2.9.3/leancloud/query.py#L117
The text was updated successfully, but these errors were encountered: