Skip to content

Remove unnecessary hasattr check from TypedDict - #533

Merged
JelleZijlstra merged 4 commits into
python:mainfrom
Daraan:TypedDict/backport__total__
Feb 22, 2025
Merged

Remove unnecessary hasattr check from TypedDict#533
JelleZijlstra merged 4 commits into
python:mainfrom
Daraan:TypedDict/backport__total__

Conversation

@Daraan

Copy link
Copy Markdown
Contributor

Adding @JelleZijlstra's PR python/cpython#109544

Including related additional tests from me python/cpython#130460 - not yet merged, hope that's fine.

@Daraan
Daraan marked this pull request as draft February 22, 2025 17:12
Daraanand others added 2 commits February 22, 2025 18:19
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@Daraan
Daraanforce-pushed the TypedDict/backport__total__ branch from a3474f9 to e2abebfCompareFebruary 22, 2025 17:20
@Daraan
Daraan marked this pull request as ready for review February 22, 2025 17:21
@DaraanDaraan mentioned this pull request Feb 22, 2025

@JelleZijlstraJelleZijlstra 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.

Thanks, would you mind adding a changelog entry since this does change user-visible behavior in an edge case?

@JelleZijlstra
JelleZijlstra merged commit 3f47bf9 into python:mainFeb 22, 2025
@Daraan
Daraan deleted the TypedDict/backport__total__ branch February 22, 2025 18:35
Sign up for freeto 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

@Daraan@JelleZijlstra