Type hinting in Python
Posted
by pingvinus
on Stack Overflow
See other posts from Stack Overflow
or by pingvinus
Published on 2010-04-24T14:20:27Z
Indexed on
2010/04/24
14:23 UTC
Read the original article
Hit count: 346
I'm studying Python after a lot of PHP experience and it would be handy to have type-hinting in Python. Looks like eclipse + pydev doesn't support this. Any suggestions?
For example, I want my IDE to show function docstrings and types, when I use it, like:
def f(x: int) -> int:
r"""Adds 3 to x"""
return x + 3
f( #and now IDE shows everything about types
© Stack Overflow or respective owner