FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-136492: Add `FrameLocalsProxyType` to `types` by ZeroIntensity · Pull Request #136546 · python/cpython · GitHub

Repository navigation

gh-136492: Add FrameLocalsProxyType to types - #136546

Merged
ZeroIntensity merged 30 commits into
python:mainfrom
ZeroIntensity:frameslocalsproxy-types
Jul 20, 2025
Merged

ZeroIntensity merged 30 commits into
python:mainfrom
ZeroIntensity:frameslocalsproxy-types

Conversation

ZeroIntensity commented Jul 11, 2025 •
edited
Loading

Copy link
Copy Markdown
Member

Comment thread Doc/whatsnew/3.15.rst Outdated
Comment thread Lib/test/test_types.py Outdated

Copy link
Copy Markdown
Member Author

Ugh, those test failures look like an existing bug on FrameLocalsProxy.

This comment was marked as spam.

picnixz commented Jul 11, 2025

Copy link
Copy Markdown
Member

@python/organization-owners Could you block blockchainGuru1018 for spam & misguided reviews? TiA.

Comment thread Doc/library/types.rst Outdated
Comment thread Doc/library/types.rst Outdated

Copy link
Copy Markdown
Member

Ugh, those test failures look like an existing bug on FrameLocalsProxy.

Could you be more specific? Maybe raise an issue for that so I can fix it later?

Copy link
Copy Markdown
Member Author

Could you be more specific? Maybe raise an issue for that so I can fix it later?

There were a few things I had to skip in test_inspect. I think they're bugs, but I haven't investigated the test enough to be sure.

Copy link
Copy Markdown
Member

Okay now we need some typing expert to review this. @JelleZijlstra maybe?

Copy link
Copy Markdown
Member Author

I'd also appreciate it if @AA-Turner could take a look; he's done some recent work with types and _types.

Copy link
Copy Markdown
Member

You don't really need a static typing expert for the types module; it predates static typing and is useful even without static typing. The PR seems pretty straightforward to me.

Comment thread Doc/whatsnew/3.15.rst Outdated
Comment thread Lib/test/test_inspect/test_inspect.py Outdated
Comment thread Lib/test/test_inspect/test_inspect.py Outdated
Comment thread Lib/types.py Outdated
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Comment thread Doc/library/types.rst Outdated
Comment thread Lib/test/test_types.py Outdated
'MethodDescriptorType', 'MethodType', 'MethodWrapperType',
'ModuleType', 'NoneType', 'NotImplementedType', 'SimpleNamespace',
'TracebackType', 'UnionType', 'WrapperDescriptorType',
'FrameLocalsProxyType'

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Please keep the list sorted (GH doesn't let me add a suggestion)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I had that originally but @picnixz had reservations about it.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think it's better to keep the list sorted rather than attempt to minimise 3-4 lines of diff here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fixed.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

My suggestion was to keep it sorted but by just adding the export on its own line.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Sorry, missed this. I've updated it now; does that look better?

Comment thread Lib/test/test_types.py Outdated
Comment thread Lib/types.py Outdated
Comment thread Objects/frameobject.c
Comment thread Doc/whatsnew/3.15.rst Outdated
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
AA-Turner changed the title gh-136492: Add FrameLocalsProxy to types gh-136492: Add FrameLocalsProxyType to types Jul 15, 2025
Comment thread Lib/test/test_inspect/test_inspect.py Outdated

AA-Turner 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks!

A

Comment thread Objects/frameobject.c Outdated
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>

Copy link
Copy Markdown
Member Author

Any final objections before I merge this?

Copy link
Copy Markdown
Member

All good with me.

A

ZeroIntensity merged commit 8f59fbb into python:main Jul 20, 2025
ZeroIntensity deleted the frameslocalsproxy-types branch July 20, 2025 18:49
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL