Commit f6e2e58
authored
docs: remove broken LiteralString overloads example
The "Interactions with Overloads" section under LiteralString contained
an example that does not typecheck in pyright (and other checkers) because
the `Literal["foo"]` and `LiteralString` overloads overlap unsafely.
The section specified no normative behavior — it was purely illustrative —
so the cleanest fix is to remove it.
Also drop the `See :ref:\`literalstring-overloads\`` back-reference from
the preceding Literal-type note, since the target no longer exists.
Fixes: #2090
1 parent ddb5107 commit f6e2e58
1 file changed
Lines changed: 1 addition & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
0 commit comments