From f70e425c4a0355ce6114f2f27944ecc2f59f8b72 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Fri, 15 Mar 2013 13:08:55 +0100 Subject: [PATCH] Lowercase the str returned by BaseDefinition.type --- jedi/api_classes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jedi/api_classes.py b/jedi/api_classes.py index 2be10641..88300d9e 100644 --- a/jedi/api_classes.py +++ b/jedi/api_classes.py @@ -120,20 +120,20 @@ class BaseDefinition(object): Finally, here is what you can get from :attr:`type`: >>> defs[0].type - 'Module' + 'module' >>> defs[1].type - 'Class' + 'class' >>> defs[2].type - 'Instance' + 'instance' >>> defs[3].type - 'Function' + 'function' """ # generate the type stripped = self.definition if isinstance(self.definition, er.InstanceElement): stripped = self.definition.var - return type(stripped).__name__ + return type(stripped).__name__.lower() @property def path(self):