Skip to content

Commit 635c8d8

Browse files
committed
fix: failing mypy
1 parent 96ae356 commit 635c8d8

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

jwt/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
HashlibHash = Callable[..., Any]
66

77

8-
class SigOptions(TypedDict):
8+
class SigOptions(TypedDict, total=False):
99
"""Options for PyJWS class (TypedDict). Note that this is a smaller set of options than
1010
for :py:func:`jwt.decode()`."""
1111

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ attr = "jwt.__version__"
115115
]
116116

117117
[tool.pytest.ini_options]
118+
addopts = "-ra"
119+
testpaths = ["tests"]
118120
filterwarnings = [
121+
"error",
119122
"ignore::jwt.warnings.InsecureKeyLengthWarning",
120123
]
121124

tox.ini

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
min_python_version = 3.9
33
ignore= E501, E203, W503, E704
44

5-
[pytest]
6-
addopts = -ra
7-
testpaths = tests
8-
filterwarnings =
9-
error
10-
115

126
[gh-actions]
137
python =

0 commit comments

Comments
 (0)