Black format

pull/1730/head
webthethird 2 years ago
parent 9238efc1a4
commit 289bd49c3e
  1. 8
      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 "" view = " view" if self.view else ""
pure = " pure" if self.pure else "" pure = " pure" if self.pure else ""
payable = " payable" if self.payable else "" payable = " payable" if self.payable else ""
returns = ["address" if isinstance(ret.type, UserDefinedType) and isinstance(ret.type.type, Contract) returns = [
else str(ret.type) for ret in self.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 = ( self._interface_signature_str = (
name + "(" + ",".join(parameters) + ") external" + payable + pure + view name + "(" + ",".join(parameters) + ") external" + payable + pure + view
) )

Loading…
Cancel
Save