Skip to content

Commit 219ed4f

Browse files
authored
use LiteralString for Sentinel name
see python/typeshed#16094
1 parent 83400e9 commit 219ed4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/typing_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class sentinel:
188188

189189
def __init__(
190190
self,
191-
__name: str = _sentinel_placeholder,
191+
__name: LiteralString = _sentinel_placeholder,
192192
__repr: typing.Optional[str] = _sentinel_placeholder,
193193
/,
194194
*,

0 commit comments

Comments
 (0)