mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-25 09:57:13 +08:00
Move some of the compiled.create calls to compiled.builtin_from_name
This commit is contained in:
@@ -95,7 +95,7 @@ class AbstractInstanceContext(Context):
|
||||
if isinstance(obj, AbstractInstanceContext):
|
||||
return self.execute_function_slots(names, obj, obj.class_context)
|
||||
else:
|
||||
none_obj = compiled.create(self.evaluator, None)
|
||||
none_obj = compiled.builtin_from_name(self.evaluator, 'None')
|
||||
return self.execute_function_slots(names, none_obj, obj)
|
||||
else:
|
||||
return ContextSet(self)
|
||||
|
||||
Reference in New Issue
Block a user