1
0
forked from VimPlug/jedi

TypedDict checking should be at a later point

This commit is contained in:
Dave Halter
2020-03-01 02:34:38 +01:00
parent fa63c92cf7
commit 609737322d
4 changed files with 6 additions and 30 deletions

View File

@@ -26,7 +26,6 @@ from jedi.inference.compiled.access import COMPARISON_OPERATORS
from jedi.inference.cache import inference_state_method_cache
from jedi.inference.gradual.stub_value import VersionInfo
from jedi.inference.gradual import annotation
from jedi.inference.gradual.typing import TypedDictClass
from jedi.inference.names import TreeNameDefinition
from jedi.inference.context import CompForContext
from jedi.inference.value.decorator import Decoratee
@@ -749,8 +748,6 @@ def _apply_decorators(context, node):
parent_context=context,
tree_node=node
)
if decoratee_value.is_typeddict():
decoratee_value = TypedDictClass(decoratee_value)
else:
decoratee_value = FunctionValue.from_context(context, node)
initial = values = ValueSet([decoratee_value])