Closed erny closed 4 years ago
Hi, please note that this repo is deprecated. To answer to your question, by PEP 484, iterators should be typed as typing.Iterator[Document]
. typing.Generator
also exists but it has some extra functionalities.
Thanks, I'll close this issue.
It's said that properties docstrings should return type such as:
On the other hand, generators should use "Yields":
But how do we specify properties that return generators? Would this be correct?: