Skip to content

gh-136492: Add FrameLocalsProxyType to types #136546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

ZeroIntensity
Copy link
Member

@ZeroIntensity ZeroIntensity commented Jul 11, 2025

@ZeroIntensity
Copy link
Member Author

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

blockchainGuru1018

This comment was marked as spam.

@picnixz
Copy link
Member

picnixz commented Jul 11, 2025

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

@gaogaotiantian
Copy link
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?

@ZeroIntensity
Copy link
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.

@gaogaotiantian
Copy link
Member

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

@ZeroIntensity
Copy link
Member Author

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

@JelleZijlstra
Copy link
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.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@@ -58,6 +58,7 @@ def test_names(self):
'MethodDescriptorType', 'MethodType', 'MethodWrapperType',
'ModuleType', 'NoneType', 'NotImplementedType', 'SimpleNamespace',
'TracebackType', 'UnionType', 'WrapperDescriptorType',
'FrameLocalsProxyType'
Copy link
Member

Choose a reason for hiding this comment

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

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

Copy link
Member Author

Choose a reason for hiding this comment

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

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

Copy link
Member

Choose a reason for hiding this comment

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

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Member

Choose a reason for hiding this comment

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

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

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@AA-Turner AA-Turner changed the title gh-136492: Add FrameLocalsProxy to types gh-136492: Add FrameLocalsProxyType to types Jul 15, 2025
ZeroIntensity and others added 6 commits July 15, 2025 04:40
This reverts commit fee5256.
Should I test before I push my changes? Yes. Will I ever do it? No.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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