-
Notifications
You must be signed in to change notification settings - Fork 802
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
Type errors while using Response.hits
attrs
#1897
Comments
Yes. Typing isn't complete in the current release. We are working on typing all the Elasticsearch structures including queries and responses, but that will come in a later release. |
The same thing happens for Will accessing |
If you use |
Since the returned type is actually
AttrList
rather than plain list, accessing those attributes will result in type errors.elasticsearch-dsl-py/elasticsearch_dsl/response/__init__.py
Line 93 in 318ea9a
e.g.,
error: "List[Hit]" has no attribute "total" [attr-defined]
The text was updated successfully, but these errors were encountered: