We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4341e6 + 255b7a8 commit d3a4d97Copy full SHA for d3a4d97
immutabledict/__init__.py
@@ -67,7 +67,7 @@ def __ror__(self, other: Any) -> Dict[Any, Any]:
67
return new
68
69
def __ior__(self, other: Any) -> "immutabledict[_K, _V]":
70
- raise TypeError("'%s' object is not mutable", self.__class__.__name__)
+ raise TypeError(f"'{self.__class__.__name__}' object is not mutable")
71
72
73
class ImmutableOrderedDict(immutabledict):
0 commit comments