From 649d6f468a09648e91ae69cbc07420f055029edf Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:50:02 +0100 Subject: [PATCH] chore: update comment (#183) --- src/anthropic/_utils/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anthropic/_utils/_utils.py b/src/anthropic/_utils/_utils.py index d4eafd4c..992b016f 100644 --- a/src/anthropic/_utils/_utils.py +++ b/src/anthropic/_utils/_utils.py @@ -362,7 +362,7 @@ def get_required_header(headers: HeadersLike, header: str) -> str: if k.lower() == lower_header and isinstance(v, str): return v - """ to deal with the case where the header looks like Finch-Event-Id """ + """ to deal with the case where the header looks like Stainless-Event-Id """ intercaps_header = re.sub(r"([^\w])(\w)", lambda pat: pat.group(1) + pat.group(2).upper(), header.capitalize()) for normalized_header in [header, lower_header, header.upper(), intercaps_header]: