El mié, 16 mar 2022 a las 3:58, Jared Crawford (<jmcrawfor...@gmail.com>) escribió:
> Hi all, > > I recently noticed that stdlib functions often don't have type hints. Is > there a technical reason why typing isn't more widespread in the cpython > implementation? Mostly there hasn't been agreement to add them. See https://discuss.python.org/t/type-annotations-in-the-standard-library/7309 for a previous discussion. > As a developer, it'd be great if I didn't have to wrap many of my stdlib > calls in casts to make mypy happy. Mypy uses standard library types from the typeshed repo ( https://github.com/python/typeshed) and doesn't look at the stdlib source code. If any of the typeshed types are incomplete, please report an issue there. > Please let me know if there's a more appropriate channel for this > discussion. I tried looking through the mailing list archives and github > issues, but I couldn't find the answer to this. > > Best, > Jared > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/3W43OKUUPVECIJMRTH7XVPFZCG7GFOVE/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/B6K7ULDFPUMPSLIG2SAK6LVP4JH7JXPL/ Code of Conduct: http://python.org/psf/codeofconduct/