diff options
| author | Josh F <josh@vector35.com> | 2022-08-05 23:17:38 -0400 |
|---|---|---|
| committer | Josh F <josh@vector35.com> | 2022-08-05 23:17:38 -0400 |
| commit | 950221b91fb1173940031acbffcd1c824bc9088d (patch) | |
| tree | 47f80069555281f9b88ec165473dedfc904844ba /python/function.py | |
| parent | b22ecfb3d4b3c23a1f2238c85d09000fe39e2357 (diff) | |
Allow None for function return_type and calling_convention
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py index c43a5868..e909ed0a 100644 --- a/python/function.py +++ b/python/function.py @@ -1088,7 +1088,7 @@ class Function: ) @return_type.setter - def return_type(self, value: StringOrType) -> None: # type: ignore + def return_type(self, value: Optional[StringOrType]) -> None: # type: ignore type_conf = core.BNTypeWithConfidence() if value is None: type_conf.type = None @@ -1137,7 +1137,7 @@ class Function: return callingconvention.CallingConvention(None, handle=result.convention, confidence=result.confidence) @calling_convention.setter - def calling_convention(self, value: 'callingconvention.CallingConvention') -> None: + def calling_convention(self, value: Optional['callingconvention.CallingConvention']) -> None: conv_conf = core.BNCallingConventionWithConfidence() if value is None: conv_conf.convention = None |
