You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For special function types like FunctionType.CONSTRUCTOR_VARIABLES, the Function._name member variable will be None, yet the Function.name property will return a string as expected ("slitherConstructorVariables"). Function.__str__, however, returns self._name rather than self.name. Returning None from __str__ raises a TypeError at runtime.
Code example to reproduce the issue:
Every function for which Function._function_type == FunctionType.CONSTRUCTOR_VARIABLES seems to have this problem.
Version:
0.8.2
Relevant log output:
No response
The text was updated successfully, but these errors were encountered:
Describe the issue:
For special function types like
FunctionType.CONSTRUCTOR_VARIABLES
, theFunction._name
member variable will beNone
, yet theFunction.name
property will return a string as expected ("slitherConstructorVariables"
).Function.__str__
, however, returnsself._name
rather thanself.name
. ReturningNone
from__str__
raises aTypeError
at runtime.Code example to reproduce the issue:
Every function for which
Function._function_type == FunctionType.CONSTRUCTOR_VARIABLES
seems to have this problem.Version:
0.8.2
Relevant log output:
No response
The text was updated successfully, but these errors were encountered: