From 9e4324bab1eb56ebb986a14093994b4bef083a11 Mon Sep 17 00:00:00 2001 From: DarrenChangJR Date: Mon, 15 May 2023 14:54:23 +0800 Subject: [PATCH] Fix issue #1849: type_str not returning str --- slither/slithir/operations/unary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/slithir/operations/unary.py b/slither/slithir/operations/unary.py index a6529d7268..c6493921dc 100644 --- a/slither/slithir/operations/unary.py +++ b/slither/slithir/operations/unary.py @@ -58,7 +58,7 @@ def type(self) -> UnaryOperationType: @property def type_str(self): - return self._type.value + return str(self._type) def __str__(self): return f"{self.lvalue} = {self.type_str} {self.rvalue} "