Skip to content

Instantly share code, notes, and snippets.

@cpdean
Created December 19, 2018 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpdean/c9e50ec80691ce5da9f2edaf61a73227 to your computer and use it in GitHub Desktop.
Save cpdean/c9e50ec80691ce5da9f2edaf61a73227 to your computer and use it in GitHub Desktop.
- ❯❯❯ 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