From 255b7a8be0846a46ef850f3965e07a17b1205dec Mon Sep 17 00:00:00 2001 From: Ron Shapiro Date: Mon, 7 Nov 2022 15:27:29 +0200 Subject: [PATCH] Fix immutabledict.__ior__ error --- immutabledict/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/immutabledict/__init__.py b/immutabledict/__init__.py index 18790bb..faf285d 100644 --- a/immutabledict/__init__.py +++ b/immutabledict/__init__.py @@ -67,7 +67,7 @@ def __ror__(self, other: Any) -> Dict[Any, Any]: return new def __ior__(self, other: Any) -> "immutabledict[_K, _V]": - raise TypeError("'%s' object is not mutable", self.__class__.__name__) + raise TypeError(f"'{self.__class__.__name__}' object is not mutable") class ImmutableOrderedDict(immutabledict):