atom / language-python

Python package for Atom
Other
190 stars 148 forks source link

Support for Type Hints (PEP484) #94

Closed andrefreitas closed 9 years ago

andrefreitas commented 9 years ago

Python 3.5 is a stable release that introduces Type Hints as described in PEP484 https://www.python.org/dev/peps/pep-0484/

def greeting(name: str) -> str:
    return 'Hello ' + name

Would be good to support this in language-python package.

winstliu commented 9 years ago

Is there a difference between this and #68?

andrefreitas commented 9 years ago

@50Wliu Type Hints syntax uses the convention used in that issue, that refers to PEP3107 Function Annotations. So yes, there is basically no difference.

winstliu commented 9 years ago

Ok, in that case, I'm going to close this in favor of #68 to keep discussion unified.