diff --git a/Makefile b/Makefile index 90c5884e..38472ee0 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ build: .preprocessed lint: ruff check ruff format --diff - mypy . + mypy --install-types --non-interactive . format: ruff check --fix diff --git a/curl_cffi/requests/__init__.py b/curl_cffi/requests/__init__.py index 2c4b054b..f24c4789 100644 --- a/curl_cffi/requests/__init__.py +++ b/curl_cffi/requests/__init__.py @@ -91,7 +91,7 @@ def request( impersonate: which browser version to impersonate. thread: work with other thread implementations. choices: eventlet, gevent. default_headers: whether to set default browser headers. - default_encoding: encoding for decoding response content if charset is not found in headers. + default_encoding: encoding for decoding response content if charset is not found in headers. Defaults to "utf-8". Can be set to a callable for automatic detection. curl_options: extra curl options to use. http_version: limiting http version, http2 will be tries by default. diff --git a/curl_cffi/requests/session.py b/curl_cffi/requests/session.py index a3808cdf..68c00dc5 100644 --- a/curl_cffi/requests/session.py +++ b/curl_cffi/requests/session.py @@ -624,7 +624,7 @@ def __init__( max_redirects: max redirect counts, default unlimited(-1). impersonate: which browser version to impersonate in the session. interface: which interface use in request to server. - default_encoding: encoding for decoding response content if charset is not found in headers. + default_encoding: encoding for decoding response content if charset is not found in headers. Defaults to "utf-8". Can be set to a callable for automatic detection. Notes: @@ -907,7 +907,7 @@ def __init__( allow_redirects: whether to allow redirection. max_redirects: max redirect counts, default unlimited(-1). impersonate: which browser version to impersonate in the session. - default_encoding: encoding for decoding response content if charset is not found in headers. + default_encoding: encoding for decoding response content if charset is not found in headers. Defaults to "utf-8". Can be set to a callable for automatic detection. Notes: