summaryrefslogtreecommitdiff
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
commitdad72ab16b1bb9e41f734f4f55dff1ef4a4a4448 (patch)
tree33ec0351b54d4bebaac02fe08a87e094533aeb5d
parentdf2d0adc86de5136fcbf68d9b9273bf4483114dc (diff)
downloadastroid-dad72ab16b1bb9e41f734f4f55dff1ef4a4a4448.tar.gz
Update the docstring of object_type in order to make it clearer for its actual purpose.
-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: