mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-09-30 23:22:26 +08:00
psutil: Fix win_service_iter() return type to allow iterating over its result (#8932)
This commit is contained in:
1 parent
d9108acc89
commit
de68029716
1 file changed
+2
-1
@@ -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