From 75a9766c3532d72c1c52d0996c809d59fba07d2e Mon Sep 17 00:00:00 2001 From: Evan Sultanik Date: Fri, 15 Apr 2022 08:19:05 -0400 Subject: [PATCH] Return Function.name to handle special function types for which Function._name == None (#1170) (#1171) --- slither/core/declarations/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/core/declarations/function.py b/slither/core/declarations/function.py index cb21ff885..8983769cc 100644 --- a/slither/core/declarations/function.py +++ b/slither/core/declarations/function.py @@ -1724,6 +1724,6 @@ class Function(SourceMapping, metaclass=ABCMeta): # pylint: disable=too-many-pu ################################################################################### def __str__(self): - return self._name + return self.name # endregion