Skip to content

Commit 1323507

Browse files
authored
Fix overload definition for intern function
1 parent 2ad589b commit 1323507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/sys/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ if sys.platform == "win32":
422422

423423
def getwindowsversion() -> _WinVersion: ...
424424

425-
@overload
426-
def intern(string: str, /) -> str: ...
427425
@overload
428426
def intern(string: LiteralString, /) -> LiteralString: ...
427+
@overload
428+
def intern(string: str, /) -> str: ...
429429

430430
__interactivehook__: Callable[[], object]
431431

0 commit comments

Comments
 (0)