From 289bd49c3ec4516409f6589ffaee18100ba24825 Mon Sep 17 00:00:00 2001 From: webthethird Date: Wed, 8 Mar 2023 16:58:19 -0600 Subject: [PATCH] Black format --- slither/core/declarations/function.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/slither/core/declarations/function.py b/slither/core/declarations/function.py index 477b6dc51..65e19e013 100644 --- a/slither/core/declarations/function.py +++ b/slither/core/declarations/function.py @@ -1024,8 +1024,12 @@ class Function(SourceMapping, metaclass=ABCMeta): # pylint: disable=too-many-pu view = " view" if self.view else "" pure = " pure" if self.pure else "" payable = " payable" if self.payable else "" - returns = ["address" if isinstance(ret.type, UserDefinedType) and isinstance(ret.type.type, Contract) - else str(ret.type) for ret in self.returns] + returns = [ + "address" + if isinstance(ret.type, UserDefinedType) and isinstance(ret.type.type, Contract) + else str(ret.type) + for ret in self.returns + ] self._interface_signature_str = ( name + "(" + ",".join(parameters) + ") external" + payable + pure + view )