functions/methods - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: functions/methods (/thread-35138.html) |
functions/methods - menator01 - Oct-02-2021 In some of the code I have seen def somefunc() -> list: or varient. What does that do?
RE: functions/methods - Yoriz - Oct-02-2021 https://docs.python.org/3/glossary.html#term-type-hint Wrote:type hint RE: functions/methods - menator01 - Oct-02-2021 Thank you |