summaryrefslogtreecommitdiff
path: root/astroid/helpers.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-10-29 20:14:56 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-10-29 20:14:56 +0200
commit310687a606b5aaffcaaf9d29e20a83baf45267da (patch)
tree16bf5ac1c494736c2143701b3153c319ef279c7b /astroid/helpers.py
parent9527b030bc58ee4c5c32bb9d97126bfbeb79afdf (diff)
downloadastroid-git-310687a606b5aaffcaaf9d29e20a83baf45267da.tar.gz
Update the docstring of object_type in order to make it clearer for its actual purpose.
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 feb0985e..00f4784b 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: