From 0c9f64d635674e175de43e28251e0c3d26132d4a Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 24 Dec 2020 16:34:02 -0800 Subject: [PATCH] PyJWT 2.0.0: `encode()` return value is now `str` https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.md#jwtencode-return-type --- third_party/3/jwt/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/3/jwt/__init__.pyi b/third_party/3/jwt/__init__.pyi index d2b45a2de6ce..edb64a12e3a4 100644 --- a/third_party/3/jwt/__init__.pyi +++ b/third_party/3/jwt/__init__.pyi @@ -18,7 +18,7 @@ def encode( algorithm: str = ..., headers: Optional[Mapping[str, Any]] = ..., json_encoder: Optional[Any] = ..., -) -> bytes: ... +) -> str: ... def register_algorithm(alg_id: str, alg_obj: algorithms.Algorithm[Any]) -> None: ... def unregister_algorithm(alg_id: str) -> None: ...