mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 12:51:27 +08:00
psutil: Fix win_service_iter() return type to allow iterating over its result (#8932)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user