summaryrefslogtreecommitdiff
path: root/astroid/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/helpers.py')
-rw-r--r--astroid/helpers.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/astroid/helpers.py b/astroid/helpers.py
index feb0985..00f4784 100644
--- a/astroid/helpers.py
+++ b/astroid/helpers.py
@@ -84,9 +84,11 @@ def _object_type(node, context=None):
def object_type(node, context=None):
"""Obtain the type of the given node
+ This is used to implement the ``type`` builtin, which means that it's
+ used for inferring type calls, as well as used in a couple of other places
+ in the inference.
The node will be inferred first, so this function can support all
- sorts of objects, as long as they support inference. It will try to
- retrieve the Python type, as returned by the builtin `type`.
+ sorts of objects, as long as they support inference.
"""
try: