summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2023-02-08 13:37:37 -0500
committerJosh Ferrell <josh@vector35.com>2023-02-08 13:37:37 -0500
commit939f4f79a0343f707ac68f18ba6b0dd319fb4f80 (patch)
tree5b98f940339d76b46980da658ae68ffd77819e48 /python
parentc4f19e2db7a25132907b96db820d4dd647bbc497 (diff)
Change Function.user_type -> Function.has_user_type, deprecate Function.explicitly_defined_type in favor of Function.has_explicitly_defined_type
Diffstat (limited to 'python')
-rw-r--r--python/function.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/function.py b/python/function.py
index 80dd3968..0c411764 100644
--- a/python/function.py
+++ b/python/function.py
@@ -545,8 +545,14 @@ class Function:
core.BNSetUserFunctionCanReturn(self.handle, bc)
@property
+ @deprecation.deprecated(details="Use Function.has_explicitly_defined_type instead.")
def explicitly_defined_type(self) -> bool:
"""Whether function has explicitly defined types (read-only)"""
+ return self.has_explicitly_defined_type
+
+ @property
+ def has_explicitly_defined_type(self) -> bool:
+ """Whether function has explicitly defined types (read-only)"""
return core.BNFunctionHasExplicitlyDefinedType(self.handle)
@property
@@ -2513,7 +2519,7 @@ class Function:
core.BNSetFunctionUserType(self.handle, value.handle)
@property
- def user_type(self) -> bool:
+ def has_user_type(self) -> bool:
"""True if the function has a user-defined type"""
return core.BNFunctionHasUserType(self.handle)