psutil: Fix win_service_iter() return type to allow iterating over its result (#8932)

This commit is contained in:
happy-monk
2022-10-20 03:00:15 +02:00
committed by GitHub
parent d9108acc89
commit de68029716

View File

@@ -1,4 +1,5 @@
import enum
from collections.abc import Iterable
from typing import Any, NamedTuple
from ._common import (
@@ -122,7 +123,7 @@ def net_if_addrs(): ...
def sensors_battery(): ...
def boot_time(): ...
def users(): ...
def win_service_iter() -> None: ...
def win_service_iter() -> Iterable[WindowsService]: ...
def win_service_get(name): ...
class WindowsService: