Skip to content

Commit 2ad589b

Browse files
authored
[stdlib] Add overloads for sys.intern function for LiteralString inputs
1 parent 63b498d commit 2ad589b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/sys/__init__.pyi

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

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

425+
@overload
425426
def intern(string: str, /) -> str: ...
427+
@overload
428+
def intern(string: LiteralString, /) -> LiteralString: ...
426429

427430
__interactivehook__: Callable[[], object]
428431

0 commit comments

Comments
 (0)