typing icon indicating copy to clipboard operation
typing copied to clipboard

LiteralString overload example doesn't typecheck

Open JelleZijlstra opened this issue 3 months ago • 0 comments

The example in https://typing.python.org/en/latest/spec/literal.html#literalstring-overloads doesn't type check in pyright because the overloads overlap unsafely. (Mypy doesn't support LiteralString; I didn't try other type checkers.)

Maybe the section can just be deleted as it doesn't specify any behavior, it's just usage examples.

JelleZijlstra avatar Sep 29 '25 03:09 JelleZijlstra