Skip to content

Added an overlay for functools.partial#1928

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

Added an overlay for functools.partial#1928
copybara-service[bot] merged 1 commit into
mainfrom
cl/748656406

Conversation

@copybara-service
Copy link
Copy Markdown

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

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

1 participant