https://docs.python.org/3/glossary.html#term-type-hint Wrote:type hint
An annotation that specifies the expected type for a variable, a class attribute, or a function parameter or return value.
Type hints are optional and are not enforced by Python but they are useful to static type analysis tools, and aid IDEs with code completion and refactoring.
Type hints of global variables, class attributes, and functions, but not local variables, can be accessed using typing.get_type_hints().
See typing and PEP 484, which describe this functionality.
functions/methods
Messages In This Thread |
functions/methods - by menator01 - Oct-02-2021, 07:22 PM
RE: functions/methods - by Yoriz - Oct-02-2021, 07:33 PM
RE: functions/methods - by menator01 - Oct-02-2021, 07:37 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Improving my understanding of functions and methods | menator01 | 2 | 2,260 |
Apr-24-2020, 06:26 AM Last Post: menator01 |
|
How to find functions or methods in a module? | deepakdeshp | 8 | 4,496 |
May-23-2019, 09:36 AM Last Post: DeaD_EyE |
Users browsing this thread: 1 Guest(s)