Skip to content

Commit

Permalink
Fix erroneous typing for callback function, closes #379 (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobinus authored Mar 29, 2021
1 parent 9005d12 commit 902410b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion responses/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class _AddCallback(Protocol):
self,
method: str,
url: Union[Pattern[str], str],
callback: Callable[..., str],
callback: Callable[[PreparedRequest], Union[Exception, Tuple[int, Mapping[str, str], _Body]]],
match_querystring: bool = ...,
content_type: Optional[str] = ...,
) -> None: ...
Expand Down

0 comments on commit 902410b

Please sign in to comment.