Skip to content

internal: suppress warning caused by stabilization of never type - #6354

Merged
davidhewitt merged 2 commits into
PyO3:mainfrom
Person-93:fix-unreachable-lint
Aug 27, 2026
Merged

internal: suppress warning caused by stabilization of never type#6354
davidhewitt merged 2 commits into
PyO3:mainfrom
Person-93:fix-unreachable-lint

Conversation

@Person-93

@Person-93 Person-93 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Stabilization of never type on nightly causes a lint warning when calling map_err on a Result<T, Infallible>. This PR suppresses it in macro-generated code.

https://github.com/PyO3/pyo3/actions/runs/32869499974/job/97872932450?pr=6343#step:14:263

@davidhewitt davidhewitt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you

@davidhewitt
davidhewitt added this pull request to the merge queue Aug 27, 2026
Merged via the queue into PyO3:main with commit fbc8456 Aug 27, 2026
54 checks passed
@Person-93
Person-93 deleted the fix-unreachable-lint branch August 27, 2026 08:20
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.

2 participants