mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-19 23:09:43 +08:00
Another Python2 fix
This commit is contained in:
@@ -166,12 +166,7 @@ class Evaluator(object):
|
|||||||
@evaluator_function_cache()
|
@evaluator_function_cache()
|
||||||
def typing_module(self):
|
def typing_module(self):
|
||||||
typing_module, = self.import_module((u'typing',))
|
typing_module, = self.import_module((u'typing',))
|
||||||
try:
|
return typing_module.stub_context or typing_module
|
||||||
return typing_module.stub_context
|
|
||||||
except AttributeError:
|
|
||||||
# Python 2 and 3.4: In some cases there is no non-stub module,
|
|
||||||
# because the module was not installed with `pip install typing`.
|
|
||||||
return typing_module
|
|
||||||
|
|
||||||
def reset_recursion_limitations(self):
|
def reset_recursion_limitations(self):
|
||||||
self.recursion_detector = recursion.RecursionDetector()
|
self.recursion_detector = recursion.RecursionDetector()
|
||||||
|
|||||||
Reference in New Issue
Block a user