mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-06 19:43:23 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
18
builtins/3/pwd.pyi
Normal file
18
builtins/3/pwd.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
# Stubs for pwd
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
import typing
|
||||
|
||||
class struct_passwd:
|
||||
# TODO use namedtuple
|
||||
pw_name = ''
|
||||
pw_passwd = ''
|
||||
pw_uid = 0
|
||||
pw_gid = 0
|
||||
pw_gecos = ''
|
||||
pw_dir = ''
|
||||
pw_shell = ''
|
||||
|
||||
def getpwuid(uid: int) -> struct_passwd: ...
|
||||
def getpwnam(name: str) -> struct_passwd: ...
|
||||
Reference in New Issue
Block a user