Skip to content
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

Google sync #1206

Merged
merged 4 commits into from May 17, 2022
Merged

Google sync #1206

merged 4 commits into from May 17, 2022

Conversation

rchen152
Copy link
Contributor

No description provided.

martindemello and others added 4 commits May 16, 2022 16:43
If `a.pyi` contains `from b import *`, `a` wiil only reexport
symbols from `b.__all__`.

PiperOrigin-RevId: 448552151
The `ast` library doesn't add the end_lineno attribute, which the
preprocessor uses, until 3.8.

PiperOrigin-RevId: 448573419
Uses argument-by-argument function call matching for PyTDFunction in cases in
which no generic classes or functions are involved in the call.

Keeping both the old and new matching implementations around is unfortunately
very messy (I was surprised how much more complicated PyTDFunction is than
InterpreterFunction!), but we should be able to clean this up considerably once
the old implementation is gone.

What I ended up doing was creating a dummy view (a variable->variable identity
mapping) that the new implementation could pass to helper methods that expect a
view. Where necessary, we're also passing around a `variable` argument to
indicate whether the view values are bindings or variables. I branched
PyTDSignature.substitute_formal_args because I thought that made the code
cleaner-looking, rather than trying to save a few lines by factoring out common
code between the two implementations.

PiperOrigin-RevId: 449077864
@rchen152 rchen152 merged commit 559970f into main May 17, 2022
@rchen152 rchen152 deleted the google_sync branch May 17, 2022 00:35
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.

None yet

2 participants