Move contents of builtins/* to stdlib/*. This simplifies finding stubs.

This commit is contained in:
Guido van Rossum
2016-01-12 12:53:18 -08:00
parent 0938e8f5de
commit 8c2118bace
85 changed files with 0 additions and 0 deletions

18
stdlib/3/pwd.pyi Normal file
View File

@@ -0,0 +1,18 @@
# Stubs for pwd
# NOTE: These are incomplete!
import typing
class struct_passwd:
# TODO use namedtuple
pw_name = ... # type: str
pw_passwd = ... # type: str
pw_uid = 0
pw_gid = 0
pw_gecos = ... # type: str
pw_dir = ... # type: str
pw_shell = ... # type: str
def getpwuid(uid: int) -> struct_passwd: ...
def getpwnam(name: str) -> struct_passwd: ...