diff options
author | Aarni Koskela <akx@iki.fi> | 2022-12-10 17:44:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 21:44:04 +0600 |
commit | 2306f68b87c5f7eecbd838db900a2d3685b81b3c (patch) | |
tree | eba477f54ab693600e65cf325842fc0c15436a1b /docs | |
parent | fb9b3119449353dca6c03be27f32e482852473c3 (diff) | |
download | pyjwt-2306f68b87c5f7eecbd838db900a2d3685b81b3c.tar.gz |
Make mypy configuration stricter and improve typing (#830)
* PyJWS._verify_signature: raise early KeyError if header is missing alg
* Make Mypy configuration stricter
* Improve typing in jwt.utils
* Improve typing in jwt.help
* Improve typing in jwt.exceptions
* Improve typing in jwt.api_jwk
* Improve typing in jwt.api_jws
* Improve typing & clean up imports in jwt.algorithms
* Correct JWS.decode rettype to any (payload could be something else)
* Update typing in api_jwt
* Improve typing in jwks_client
* Improve typing in docs/conf.py
* Fix (benign) mistyping in test_advisory
* Fix misc type complaints in tests
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index 44b5103..938631f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,7 +4,7 @@ import re import sphinx_rtd_theme -def read(*parts): +def read(*parts) -> str: """ Build an absolute path from *parts* and and return the contents of the resulting file. Assume UTF-8 encoding. @@ -14,7 +14,7 @@ def read(*parts): return f.read() -def find_version(*file_paths): +def find_version(*file_paths) -> str: """ Build a path from *file_paths* and search for a ``__version__`` string inside. |