Skip to content

Work around typing issue from more_itertools#5208

Open
ngoldbaum wants to merge 2 commits intopypa:mainfrom
ngoldbaum:cast-more-itertools
Open

Work around typing issue from more_itertools#5208
ngoldbaum wants to merge 2 commits intopypa:mainfrom
ngoldbaum:cast-more-itertools

Conversation

@ngoldbaum
Copy link
Copy Markdown
Contributor

Summary of changes

Running the tests with the latest versions of the test dependencies will fail due to an issue in more_itertools: more-itertools/more-itertools#1143.

For now, to unbreak CI, I'm adding a runtime cast to avoid the type checking issue.

Closes

Pull Request Checklist

@ngoldbaum
Copy link
Copy Markdown
Contributor Author

The diffcov failure is spurious: the current diffcov configuration will never see top-level imports.

Unfortunately, when I try to fix it, I hit pytest-dev/pytest-cov#740. The simplest thing is probably just to ignore the diffcov failure on this PR.

@ngoldbaum ngoldbaum marked this pull request as ready for review April 2, 2026 19:10
@ngoldbaum
Copy link
Copy Markdown
Contributor Author

more-itertools/more-itertools#1144 and a more-itertools release might obviate the need for this.

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.

1 participant