Created
December 19, 2018 16:10
-
-
Save cpdean/c9e50ec80691ce5da9f2edaf61a73227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- ❯❯❯ python3 | |
Python 3.7.1 (default, Nov 6 2018, 18:45:35) | |
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> def goat(n: int) -> str: | |
... """ an goat str """ | |
... return 'goat' | |
... | |
>>> print(goat.__doc__) | |
an goat str | |
>>> goat.__annotations__ | |
{'n': <class 'int'>, 'return': <class 'str'>} | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment