From 3e26a91f40d8215b52928db0f0261df885eec2e5 Mon Sep 17 00:00:00 2001 From: Jonathan Vanasco Date: Wed, 21 May 2025 17:58:26 -0400 Subject: [PATCH] [webob-stubs] Fix _Serializer protocol (#14116) --- stubs/WebOb/webob/cookies.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/WebOb/webob/cookies.pyi b/stubs/WebOb/webob/cookies.pyi index 9cc7d7acf..98914a2a7 100644 --- a/stubs/WebOb/webob/cookies.pyi +++ b/stubs/WebOb/webob/cookies.pyi @@ -27,8 +27,8 @@ _T = TypeVar("_T") _SameSitePolicy: TypeAlias = Literal["Strict", "Lax", "None", "strict", "lax", "none"] class _Serializer(Protocol): - def loads(self, appstruct: Any, /) -> bytes: ... - def dumps(self, bstruct: bytes, /) -> Any: ... + def dumps(self, appstruct: Any, /) -> bytes: ... + def loads(self, bstruct: bytes, /) -> Any: ... class RequestCookies(MutableMapping[str, str]): def __init__(self, environ: WSGIEnvironment) -> None: ...