Esempio n. 1
0
    def py__call__(self, arguments=None):
        from jedi.inference.value import TreeInstance

        from jedi.inference.gradual.typing import TypedDict
        if self.is_typeddict():
            return ValueSet([TypedDict(self)])
        return ValueSet([TreeInstance(self.inference_state, self.parent_context, self, arguments)])
Esempio n. 2
0
 def py__call__(self, arguments=None):
     from jedi.inference.value import TreeInstance
     if arguments is None:
         arguments = ValuesArguments([])
     return ValueSet([
         TreeInstance(self.inference_state, self.parent_context, self,
                      arguments)
     ])