feat: enhance sys/platform type definitions

This commit is contained in:
Shunsuke Shibayama 2023-08-27 13:58:11 +09:00
parent 9c1e32db06
commit f6763fcfdf
2 changed files with 26 additions and 4 deletions

View file

@ -1,13 +1,32 @@
.architecture!: () => Str
.architecture!: () => (Str, Str)
.libc_ver!: (
executable := Str,
lib := Str,
version := Str,
chunksize := Nat
) => (Str, Str)
.mac_ver!: () => (Str, (Str, Str, Str), Str)
.machine!: () => Str
.node!: () => Str
.platform!: () => Str
.platform!: (aliased := Bool, terse := Bool) => Str
.processor!: () => Str
.python_build!: () => Str
.python_build!: () => (Str, Str)
.python_compiler!: () => Str
.python_branch!: () => Str
.python_implementation!: () => Str
.python_revision!: () => Str
.python_version!: () => Str
.python_version_tuple!: () => (Str, Str, Str)
.uname!: () => {.system = Str; .node = Str; .release = Str; .version = Str; .machine = Str}
.release!: () => Str
.system!: () => Str
.system_alias!: (system: Str, release: Str, version: Str) => (Str, Str, Str)
.version!: () => Str
.win32_ver!: (
release := Str,
version := Str,
csd := Str,
ptype := Str
) => (Str, Str, Str, Str)
.win32_edition!: () => Str
.win32_is_iot!: () => Bool
.uname!: () => NamedTuple {.system = Str; .node = Str; .release = Str; .version = Str; .machine = Str}

View file

@ -90,4 +90,7 @@ io = pyimport "io"
.audit!: (event: Str, *args: Obj) => NoneType
.exit: Obj -> Never
.getdefaultencoding!: () => Str
.getrecursionlimit!: () => Nat
.getrefcount!: (obj: Obj) => Nat
.getsizeof: (obj: Obj) -> Nat
.setrecursionlimit!: Nat => NoneType