summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-12-19 15:51:39 -0800
committerGitHub <noreply@github.com>2020-12-19 18:51:39 -0500
commitce4f350ffc052f767c772c0685cc591f7d5f4e9b (patch)
treeaa4d4a1a9edba4757517b07a888478a9d26df11d /docs
parent9acab9cad0ee536f41aca39f5d4cf09680bf1ffb (diff)
downloadpyjwt-ce4f350ffc052f767c772c0685cc591f7d5f4e9b.tar.gz
Autoupdate pre-commit hooks and apply them (#561)
https://pre-commit.com/#updating-hooks-automatically
Diffstat (limited to 'docs')
-rw-r--r--docs/usage.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/usage.rst b/docs/usage.rst
index 5e88041..30f39af 100644
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -49,7 +49,12 @@ Specifying Additional Headers
.. code-block:: pycon
- >>> jwt.encode({"some": "payload"}, "secret", algorithm="HS256", headers={"kid": "230498151c214b788dd97f22b85410a5"})
+ >>> jwt.encode(
+ ... {"some": "payload"},
+ ... "secret",
+ ... algorithm="HS256",
+ ... headers={"kid": "230498151c214b788dd97f22b85410a5"},
+ ... )
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjIzMDQ5ODE1MWMyMTRiNzg4ZGQ5N2YyMmI4NTQxMGE1In0.eyJzb21lIjoicGF5bG9hZCJ9.DogbDGmMHgA_bU05TAB-R6geQ2nMU2BRM-LnYEtefwg'