def provider() -> Iterator[Provider]: provider = Provider() yield provider provider.stop()
def provider(): provider = Provider() yield provider provider.stop()