From 43f0cb5533fbc25feecd70b656bcfcc0d7de3719 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 20 Dec 2021 20:51:30 -0500 Subject: [PATCH] add stripe.util.populate_headers (#6637) --- stubs/stripe/stripe/util.pyi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stubs/stripe/stripe/util.pyi b/stubs/stripe/stripe/util.pyi index 67f93be75..e3590f188 100644 --- a/stubs/stripe/stripe/util.pyi +++ b/stubs/stripe/stripe/util.pyi @@ -1,4 +1,4 @@ -from typing import Any +from typing import Any, overload def utf8(value): ... def log_debug(message, **params) -> None: ... @@ -12,3 +12,8 @@ class class_method_variant: method: Any def __call__(self, method): ... def __get__(self, obj, objtype: Any | None = ...): ... + +@overload +def populate_headers(idempotency_key: None) -> None: ... +@overload +def populate_headers(idempotency_key: str) -> dict[str, str]: ...