Fix wording with TypeError in ImmutableObject.replace
This commit is contained in:
parent
cc3ec5e218
commit
fa817dee35
@ -112,7 +112,7 @@ class ImmutableObject(object):
|
||||
for key, value in kwargs.items():
|
||||
if not self._is_valid_field(key):
|
||||
raise TypeError(
|
||||
'copy() got an unexpected keyword argument "%s"' % key)
|
||||
'replace() got an unexpected keyword argument "%s"' % key)
|
||||
other._set_field(key, value)
|
||||
return other
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user