mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 06:36:54 +08:00
Add missing __match_args__ attributes to several unix-only structseq classes (#7587)
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import sys
|
||||
from _typeshed import structseq
|
||||
from typing import Any
|
||||
from typing_extensions import final
|
||||
from typing_extensions import Final, final
|
||||
|
||||
if sys.platform != "win32":
|
||||
@final
|
||||
class struct_passwd(structseq[Any], tuple[str, str, int, int, str, str, str]):
|
||||
if sys.version_info >= (3, 10):
|
||||
__match_args__: Final = ("pw_name", "pw_passwd", "pw_uid", "pw_gid", "pw_gecos", "pw_dir", "pw_shell")
|
||||
@property
|
||||
def pw_name(self) -> str: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user