pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/mypy/pull/21282

"https://github.githubassets.com/assets/actions-902e75f4f51a80db.css" /> Fix slicing with nonstrict optional by hauntsaninja · Pull Request #21282 · python/mypy · GitHub
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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy