Commit df1bb53
committed
Remove invalid return type annotation from
The annotation was invalid, resulting in mypy error:
error: "dict" expects 2 type arguments, but 1 given [type-arg]
The `headers` field of the dictionary returned by this function is a `http.client.HTTPMessage` class object, while the
other field values are strings. I didn't find a way to specify this in a return type annotation and the current approach
is to provide annotations on a "best effort" basis (vs making them universally mandatory) so I settled on removing the
annotation entirely.http_request method1 parent da55457 commit df1bb53
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| |||
0 commit comments