Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4655ca commit a9dba93Copy full SHA for a9dba93
Lib/collections/__init__.py
@@ -457,7 +457,7 @@ def _make(cls, iterable):
457
def _replace(self, /, **kwds):
458
result = self._make(_map(kwds.pop, field_names, self))
459
if kwds:
460
- raise TypeError(f'Got unexpected field name(s): {list(kwds)!r}')
+ raise ValueError(f'Got unexpected field name(s): {list(kwds)!r}')
461
return result
462
463
_replace.__doc__ = (f'Return a new {typename} object replacing specified '
0 commit comments