Skip to content

Commit 019a8a8

Browse files
committed
Fix typing for Route modulos arg
1 parent cc81913 commit 019a8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

respx/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def __call__(self, side_effect: CallableSideEffect) -> CallableSideEffect:
128128
self.side_effect = side_effect
129129
return side_effect
130130

131-
def __mod__(self, response: Union[int, Dict[str, Any]]) -> "Route":
131+
def __mod__(self, response: Union[int, Dict[str, Any], httpx.Response]) -> "Route":
132132
if isinstance(response, int):
133133
self.return_value = httpx.Response(status_code=response)
134134

0 commit comments

Comments
 (0)