Commit f5c2531
committed
pythongh-145098: Fix incorrect type name in dict_vectorcall error message
dict_vectorcall() is shared by both dict and frozendict. When called
with too many positional arguments, it previously hardcoded "dict" in
the error message even when invoked as frozendict.
For example, `frozendict(1, 2)` raised:
TypeError: dict expected at most 1 argument, got 2
After this fix it correctly raises:
TypeError: frozendict expected at most 1 argument, got 2
https://claude.ai/code/session_01EdeU6enhg5YoLvKmBPpiZf1 parent 72eca2a commit f5c2531
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1746 | 1746 | | |
1747 | 1747 | | |
1748 | 1748 | | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
1749 | 1753 | | |
1750 | 1754 | | |
1751 | 1755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5107 | 5107 | | |
5108 | 5108 | | |
5109 | 5109 | | |
5110 | | - | |
| 5110 | + | |
5111 | 5111 | | |
5112 | 5112 | | |
5113 | 5113 | | |
| |||
0 commit comments