Commit 6ec5d82
Leo Ji
fix: use "constraints and a bound" in TypeVar error message
PEP 484 uses "constraints" for the positional arguments of TypeVar
(e.g. TypeVar("T", int, str)) and "bound" for the keyword argument.
The existing message "cannot have both values and an upper bound" used
neither term correctly. Updated to:
TypeVar cannot have both constraints and a bound
Closes #20973
Made-with: Cursor1 parent 25b210d commit 6ec5d82
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4936 | 4936 | | |
4937 | 4937 | | |
4938 | 4938 | | |
4939 | | - | |
| 4939 | + | |
4940 | 4940 | | |
4941 | 4941 | | |
4942 | 4942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1062 | 1062 | | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | | - | |
| 1065 | + | |
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
| |||
0 commit comments