We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Literal
LiteralString
1 parent b4b6330 commit 1ef6a70Copy full SHA for 1ef6a70
stdlib/sys/__init__.pyi
@@ -378,13 +378,13 @@ if sys.platform == "android": # noqa: Y008
378
def getandroidapilevel() -> int: ...
379
380
def getallocatedblocks() -> int: ...
381
-def getdefaultencoding() -> str: ...
+def getdefaultencoding() -> Literal["utf-8"]: ...
382
383
if sys.platform != "win32":
384
def getdlopenflags() -> int: ...
385
386
-def getfilesystemencoding() -> str: ...
387
-def getfilesystemencodeerrors() -> str: ...
+def getfilesystemencoding() -> LiteralString: ...
+def getfilesystemencodeerrors() -> LiteralString: ...
388
def getrefcount(object: Any, /) -> int: ...
389
def getrecursionlimit() -> int: ...
390
def getsizeof(obj: object, default: int = ...) -> int: ...
0 commit comments