Skip to content

Commit ac4cb7a

Browse files
eurestiJelleZijlstra
authored andcommitted
Make sys.getfilesystemencoding not return None (#1245)
Fixes #1221
1 parent b8a3f93 commit ac4cb7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/2/sys.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def exit(arg: Any = ...) -> NoReturn:
124124
def getcheckinterval() -> int: ... # deprecated
125125
def getdefaultencoding() -> str: ...
126126
def getdlopenflags() -> int: ...
127-
def getfilesystemencoding() -> Union[str, None]: ...
127+
def getfilesystemencoding() -> str: ... # In practice, never returns None
128128
def getrefcount(arg: Any) -> int: ...
129129
def getrecursionlimit() -> int: ...
130130
def getsizeof(obj: object, default: int = ...) -> int: ...

0 commit comments

Comments
 (0)