Skip to content

Commit 2a68d1a

Browse files
Update client_reqrep.py
1 parent 8f695c0 commit 2a68d1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aiohttp/client_reqrep.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
netrc_from_env,
5858
noop,
5959
reify,
60+
sentinel,
6061
set_exception,
6162
set_result,
6263
)
@@ -136,14 +137,14 @@ def __new__(
136137
url: URL,
137138
method: str,
138139
headers: "CIMultiDictProxy[str]",
139-
real_url: URL = _SENTINEL, # type: ignore[assignment]
140+
real_url: Union[URL, _SENTINEL] = sentinel,
140141
) -> "RequestInfo":
141142
"""Create a new RequestInfo instance.
142143
143144
For backwards compatibility, the real_url parameter is optional.
144145
"""
145146
return tuple.__new__(
146-
cls, (url, method, headers, url if real_url is _SENTINEL else real_url)
147+
cls, (url, method, headers, url if real_url is sentinel else real_url)
147148
)
148149

149150

0 commit comments

Comments
 (0)