pylint icon indicating copy to clipboard operation
pylint copied to clipboard

Missing timeout for requests.Session object?

Open fossilet opened this issue 11 months ago • 1 comments

Question

missing-timeout / W3101 reports in my codebase requests.get calls, but not for:

session = requests.Session()
session.get(url)

Is it possible to make pylint also warn about these cases?

Documentation for future user

in code and docs.

Additional context

No response

fossilet avatar Mar 22 '24 08:03 fossilet

https://github.com/pylint-dev/pylint/pull/9525#issue-2217965137

i have added which may help in solving it please let me know issues regarding it

use the command below for checks pylint --load-plugins=pylint_plugins.requests_timeout_plugin your_code.py

joel6948 avatar Apr 01 '24 10:04 joel6948