From 31a24be5c052278f30ff57256a3c63081180cb9c Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sat, 5 Sep 2026 02:14:48 +0100 Subject: [PATCH 1/2] Add Morsel.copy() --- stdlib/http/cookies.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/http/cookies.pyi b/stdlib/http/cookies.pyi index 682884423448..d74c38a965ea 100644 --- a/stdlib/http/cookies.pyi +++ b/stdlib/http/cookies.pyi @@ -28,6 +28,7 @@ class Morsel(dict[str, Any], Generic[_T]): @property def key(self) -> str | MaybeNone: ... def __init__(self) -> None: ... + def copy(self) -> "Morsel[_T]": ... def set(self, key: str, val: str, coded_val: _T) -> None: ... def setdefault(self, key: str, val: str | None = None) -> str: ... # The dict update can also get a keywords argument so this is incompatible From 5c6c7f9754ddb78331299863c8383ebf671b2872 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 01:17:25 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stdlib/http/cookies.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/http/cookies.pyi b/stdlib/http/cookies.pyi index d74c38a965ea..5434f8b8db7d 100644 --- a/stdlib/http/cookies.pyi +++ b/stdlib/http/cookies.pyi @@ -28,7 +28,7 @@ class Morsel(dict[str, Any], Generic[_T]): @property def key(self) -> str | MaybeNone: ... def __init__(self) -> None: ... - def copy(self) -> "Morsel[_T]": ... + def copy(self) -> Morsel[_T]: ... def set(self, key: str, val: str, coded_val: _T) -> None: ... def setdefault(self, key: str, val: str | None = None) -> str: ... # The dict update can also get a keywords argument so this is incompatible