Skip to content
Myr

Mark `Response.json()` as returning `Any` (#923)

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

authored by Florimond Manca · committed by GitHub · parent 3b9ebe0 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:httpx/_models.py+1 added-1 removed
836 unmodified lines
837 elif StatusCode.is_server_error(self.status_code):838 message = message.format(self, error_type="Server Error")839 raise HTTPError(message, response=self)840841 def json(self, **kwargs: typing.Any) -> typing.Union[dict, list]:841 def json(self, **kwargs: typing.Any) -> typing.Any:842 if self.charset_encoding is None and self.content and len(self.content) > 3:843 encoding = guess_json_utf(self.content)844 if encoding is not None:845 try:
357 unmodified lines