Skip to content
Myr

Constrain Response.reason to str (#7437)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nate Prewitt · committed by GitHub · parent 6404f34 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/requests/models.py+2 added-2 removed
739 unmodified lines
740 raw: Any741 url: str742 encoding: str | None743 history: list[Response]744 reason: str | None744 reason: str745 cookies: RequestsCookieJar746 elapsed: datetime.timedelta747 request: PreparedRequest748 connection: HTTPAdapter
40 unmodified lines
789 #: up here. The list is sorted from the oldest to the most recent request.790 self.history = []791792 #: Textual reason of responded HTTP Status, e.g. "Not Found" or "OK".793 self.reason = None793 self.reason = None # type: ignore[assignment]794795 #: A CookieJar of Cookies the server sent back.796 self.cookies = cookiejar_from_dict({})797
383 unmodified lines