Skip to content
This repository was archived by the owner on Sep 3, 2026. It is now read-only.

Added an overlay for functools.partial - #1928

Merged
copybara-service[bot] merged 1 commit into
mainfrom
cl/748656406
Sep 30, 2025
Merged

copybara-service[bot] merged 1 commit into
mainfrom
cl/748656406

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Sep 23, 2025 •

Copy link
Copy Markdown

Added an overlay for functools.partial

The goal of the overlay is to delay return type inference until the partial
object is called, allowing pytype to use all available arguments instead of
just the ones provided to functools.partial.

The overlay is currently gated by a feature flag to avoid breaking existing
(but ill-typed) code.

@copybara-service
copybara-service Bot force-pushed the cl/748656406 branch 2 times, most recently from 76bdd14 to a8c6085 Compare September 30, 2025 08:33
The goal of the overlay is to delay return type inference until the partial
object is called, allowing pytype to use all available arguments instead of
just the ones provided to `functools.partial`.

The overlay is currently gated by a feature flag to avoid breaking existing
(but ill-typed) code.

PiperOrigin-RevId: 813149022
@copybara-service
copybara-service Bot merged commit 9121672 into main Sep 30, 2025
@copybara-service
copybara-service Bot deleted the cl/748656406 branch September 30, 2025 08:36

This branch was previously deployed

1 inactive deployment
github-pages — 9121672c Deployed Sep 30, 2025 by github-pages[bot] via deploy #517
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant