Open harupy opened 10 hours ago
is there a reason that invalid-envvar-default only checks os.getenv, not os.environ.get?
invalid-envvar-default
os.getenv
os.environ.get
https://github.com/pylint-dev/pylint/blob/68cb5b320653ad64c68ff48a4bb4ba449a01d3a6/pylint/checkers/stdlib.py#L33
No particular reasons, imo it's not a very good check as mypy does it better but I'm open to merging a PR.
is there a reason that
invalid-envvar-default
only checksos.getenv
, notos.environ.get
?https://github.com/pylint-dev/pylint/blob/68cb5b320653ad64c68ff48a4bb4ba449a01d3a6/pylint/checkers/stdlib.py#L33