Skip to content

bisect: insort_*, unlike bisect_*, expects x to match type of elements of a #7102

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 2 commits into from
Feb 2, 2022

Conversation

Kentzo
Copy link
Contributor

@Kentzo Kentzo commented Feb 2, 2022

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Kentzo
Copy link
Contributor Author

Kentzo commented Feb 2, 2022

The only failure does not seem to relate to the change.

@AlexWaygood
Copy link
Member

The only failure does not seem to relate to the change.

If you close and reopen your PR, it should trigger a fresh CI run.

@srittau srittau closed this Feb 2, 2022
@srittau srittau reopened this Feb 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2022

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@@ -27,27 +27,21 @@ if sys.version_info >= (3, 10):
*,
key: Callable[[_T], SupportsRichComparisonT] = ...,
) -> int: ...
@overload
def insort_left(a: MutableSequence[_T], x: _T, lo: int = ..., hi: int | None = ..., *, key: None = ...) -> None: ...
@overload
def insort_left(
a: MutableSequence[_T],
Copy link
Collaborator

Choose a reason for hiding this comment

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

_T should probably be SupportsRichComparisonT here and elsewhere, but that's probably out of scope for this PR.

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks.

@srittau srittau merged commit f2ce1d1 into python:master Feb 2, 2022
@Kentzo Kentzo deleted the bisect branch February 2, 2022 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants