Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jocke-l committed Oct 10, 2020
1 parent edf8cfe commit f4992f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion respx/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Headers = List[Tuple[bytes, bytes]]
Request = Tuple[
bytes, # http method
URL,
Union[str, URL],
Headers,
Union[Iterable[bytes], AsyncIterable[bytes]], # body
]
Expand Down
5 changes: 2 additions & 3 deletions respx/transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
RequestPattern,
ResponseTemplate,
SyncResponse,
URLPatternTypes,
decode_request,
decode_response,
)
Expand Down Expand Up @@ -329,7 +328,7 @@ def assert_all_called(self) -> None:
def match(
self,
method: bytes,
url: URLPatternTypes,
url: Union[str, URL],
headers: Headers = None,
stream: Union[SyncByteStream, AsyncByteStream] = None,
) -> Tuple[Optional[RequestPattern], Request, Optional[ResponseTemplate]]:
Expand Down Expand Up @@ -378,7 +377,7 @@ def match(
def request(
self,
method: bytes,
url: URLPatternTypes,
url: Union[str, URL],
headers: Headers = None,
stream: SyncByteStream = None,
ext: dict = None,
Expand Down

0 comments on commit f4992f8

Please sign in to comment.