Skip to content

Switch from invariant List to covariant Sequence #2324

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

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Oct 5, 2023

Closes #2273

To make the snippet from @floxay in #2273 work, I had to explicitly type searches_list as List[Mapping[str, Any]], otherwise I was getting:

error: Argument "searches" to "msearch" of "Elasticsearch" has incompatible type "list[object]"; expected "Sequence[Mapping[str, Any]]"  [arg-type]

Copy link
Member

@JoshMock JoshMock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't look at every line, but I get the gist. 😄 LGTM.

@pquentin pquentin merged commit 8affaa7 into elastic:main Oct 6, 2023
@pquentin pquentin deleted the covariant-sequence branch October 6, 2023 06:36
github-actions bot pushed a commit that referenced this pull request Oct 6, 2023
github-actions bot pushed a commit that referenced this pull request Oct 6, 2023
pquentin pushed a commit that referenced this pull request Oct 6, 2023
* Switch from invariant List to covariant Sequence (#2324)

(cherry picked from commit 8affaa7)
pquentin pushed a commit that referenced this pull request Oct 6, 2023
* Switch from invariant List to covariant Sequence (#2324)

(cherry picked from commit 8affaa7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrectly generated signature for msearch (searches parameter)
2 participants