mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-27 13:52:17 +08:00
Move some of the compiled.create calls to compiled.builtin_from_name
This commit is contained in:
@@ -25,7 +25,8 @@ class _ModuleAttributeName(AbstractNameDefinition):
|
||||
self.string_name = string_name
|
||||
|
||||
def infer(self):
|
||||
return compiled.create(self.parent_context.evaluator, str).execute_evaluated()
|
||||
ctx = compiled.builtin_from_name(self.parent_context.evaluator, 'str')
|
||||
return ctx.execute_evaluated()
|
||||
|
||||
|
||||
class ModuleName(ContextNameMixin, AbstractNameDefinition):
|
||||
|
||||
Reference in New Issue
Block a user