[issue39759] os.getenv documentation is misleading

Rémi Lapeyre report at bugs.python.org
Wed Feb 26 11:05:28 EST 2020


Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:

I don't really have a preference regarding saying that `default` should be a string or not but the phrase should still be reworded to be less confusing.

In typeshed it's documented with a generic type: https://github.com/python/typeshed/blob/master/stdlib/3/os/__init__.pyi#L363.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39759>
_______________________________________


More information about the Python-bugs-list mailing list