You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stubs are correct, they aren't the same as the function signature because the body parameter is deprecated in 8.0 and onwards. You can either use type: ignore or switch to using document= with the index API. See this issue for more info on these deprecations: #1698
Closing this for now, let me know if you have additional questions.
Elasticsearch version (
bin/elasticsearch --version
): 7.12.1elasticsearch-py
version (elasticsearch.__versionstr__
): 7.15.2Please make sure the major version matches the Elasticsearch server you are running.
Description of the problem including expected versus actual behavior:
There is mismatch between the code signature and the stubs:
https://github.com/elastic/elasticsearch-py/blob/v7.15.2/elasticsearch/client/__init__.py#L360
https://github.com/elastic/elasticsearch-py/blob/v7.15.2/elasticsearch/client/__init__.pyi#L183-L187
since the stubs matches the 8.x API, I'm guessing this is related to some auto-generated code.
Steps to reproduce:
N/A
The text was updated successfully, but these errors were encountered: