From 53c08c119e1269822b0ace389e26b1172c419871 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 11 Mar 2020 19:38:45 -0400 Subject: documentation for the Type class, setter for function_type can take a string, and __str__ for functions with the full prototype: Fixes #1549 --- python/types.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'python/types.py') diff --git a/python/types.py b/python/types.py index bd251e0d..00810c11 100644 --- a/python/types.py +++ b/python/types.py @@ -319,6 +319,17 @@ class FunctionParameter(object): class Type(object): + """ + ``class Type`` allows you to interact with the Binary Ninja type system. Note that the ``repr`` and ``str`` + handlers respond differently on type objects. + + Other related functions that may be helpful include: + + :py:meth:`parse_type_string ` + :py:meth:`parse_types_from_source ` + :py:meth:`parse_types_from_source_file ` + + """ def __init__(self, handle, platform = None, confidence = max_confidence): self._handle = handle self._mutable = isinstance(handle.contents, core.BNTypeBuilder) -- cgit v1.3.1