mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
`os.uname` changed in version 3.3: Return type changed from a tuple to a tuple-like object with named attributes.
13 lines
311 B
Python
13 lines
311 B
Python
# Stubs for posix
|
|
|
|
# NOTE: These are incomplete!
|
|
|
|
import sys
|
|
import typing
|
|
from os import stat_result
|
|
from typing import NamedTuple
|
|
|
|
if sys.version_info >= (3, 3):
|
|
uname_result = NamedTuple('uname_result', [('sysname', str), ('nodename', str),
|
|
('release', str), ('version', str), ('machine', str)])
|