mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 05:54:02 +08:00
[stdlib][sys] Change return types to use Literal/LiteralString (#15032)
This commit is contained in:
@@ -378,13 +378,13 @@ if sys.platform == "android": # noqa: Y008
|
||||
def getandroidapilevel() -> int: ...
|
||||
|
||||
def getallocatedblocks() -> int: ...
|
||||
def getdefaultencoding() -> str: ...
|
||||
def getdefaultencoding() -> Literal["utf-8"]: ...
|
||||
|
||||
if sys.platform != "win32":
|
||||
def getdlopenflags() -> int: ...
|
||||
|
||||
def getfilesystemencoding() -> str: ...
|
||||
def getfilesystemencodeerrors() -> str: ...
|
||||
def getfilesystemencoding() -> LiteralString: ...
|
||||
def getfilesystemencodeerrors() -> LiteralString: ...
|
||||
def getrefcount(object: Any, /) -> int: ...
|
||||
def getrecursionlimit() -> int: ...
|
||||
def getsizeof(obj: object, default: int = ...) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user