mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-09-20 18:23:15 +08:00
fix bugs in builtins/2.7/*.pyi
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
def getpwall() -> list<struct_passwd>
|
||||
def getpwnam(name:str) -> struct_passwd
|
||||
def getpwuid(uid:int) -> struct_passwd
|
||||
from typing import List
|
||||
|
||||
class struct_passwd(tuple): ...
|
||||
class struct_passwd(tuple):
|
||||
n_fields = ... # type: int
|
||||
n_sequence_fields = ... # type: int
|
||||
n_unnamed_fields = ... # type: int
|
||||
@@ -13,3 +11,8 @@ class struct_passwd(tuple): ...
|
||||
pw_gecos = ... # type: str
|
||||
pw_gid = ... # type: int
|
||||
pw_uid = ... # type: int
|
||||
|
||||
def getpwall() -> List[struct_passwd]: ...
|
||||
def getpwnam(name:str) -> struct_passwd: ...
|
||||
def getpwuid(uid:int) -> struct_passwd: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user