Skip to content

Commit b281b76

Browse files
committed
Trivial typing fix
mypy cannot infer the type of an empty dict. We need to explicitly type it. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 5454dda commit b281b76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_content_type.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def test_json_content(self):
5454
# The JSON content type represents implictly UTF-8 application/json.
5555
self.assertThat(JSON.type, Equals("application"))
5656
self.assertThat(JSON.subtype, Equals("json"))
57-
self.assertThat(JSON.parameters, Equals({}))
57+
expected_parameters: dict[str, str] = {}
58+
self.assertThat(JSON.parameters, Equals(expected_parameters))
5859

5960

6061
def test_suite():

0 commit comments

Comments
 (0)