Skip to content

Fix slicing with nonstrict optional#21282

Merged
JukkaL merged 1 commit intopython:masterfrom
hauntsaninja:indexopt
Apr 21, 2026
Merged

Fix slicing with nonstrict optional#21282
JukkaL merged 1 commit intopython:masterfrom
hauntsaninja:indexopt

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

Fixes #21261

I didn't add a regression test because you need custom fixtures and I just don't think any nonstrict optional change is worth the trouble

Fixes python#21261

I didn't add a regression test because you need custom fixtures and I
just don't think any nonstrict optional change is worth the trouble
@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit 2dc89dc into python:master Apr 21, 2026
24 checks passed
JukkaL pushed a commit that referenced this pull request Apr 21, 2026
Fixes #21261

I didn't add a regression test because you need custom fixtures and I
just don't think any nonstrict optional change is worth the trouble
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.20 regression] Per-module strict_optional = True override produces spurious [index] errors

2 participants