pylint-dev / pylint

It's not just a linter that annoys you!
https://pylint.readthedocs.io/en/latest/
GNU General Public License v2.0
5.34k stars 1.14k forks source link

Question: Is there a reason that `invalid-envvar-default` only checks `os.getenv`, not `os.environ.get` #10092

Open harupy opened 10 hours ago

harupy commented 10 hours ago

is there a reason that invalid-envvar-default only checks os.getenv, not os.environ.get?

https://github.com/pylint-dev/pylint/blob/68cb5b320653ad64c68ff48a4bb4ba449a01d3a6/pylint/checkers/stdlib.py#L33

Pierre-Sassoulas commented 6 hours ago

No particular reasons, imo it's not a very good check as mypy does it better but I'm open to merging a PR.