simple question : What is the correct PEP 3107 keyword for a function that yields items ?
Already tried this, but it doesn't work
def this_function() -> generator:
for x in range(0,100):
yield x
Also tried with Iterator[int]
as this post suggests, but no results. Also tried the various propositions made here, but nothing
N.B. Don't know if this is relevant, but my linter is Pylance on VSCode