Skip to content

Commit d3a4d97

Browse files
authored
Merge pull request #66 from ronshapiro/patch-1
Fix immutabledict.__ior__ error
2 parents f4341e6 + 255b7a8 commit d3a4d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

immutabledict/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __ror__(self, other: Any) -> Dict[Any, Any]:
6767
return new
6868

6969
def __ior__(self, other: Any) -> "immutabledict[_K, _V]":
70-
raise TypeError("'%s' object is not mutable", self.__class__.__name__)
70+
raise TypeError(f"'{self.__class__.__name__}' object is not mutable")
7171

7272

7373
class ImmutableOrderedDict(immutabledict):

0 commit comments

Comments
 (0)