File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
utbot-python/src/main/kotlin/org/utbot/python/newtyping/ast/visitor/hints Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,13 @@ class HintCollector(
102
102
}
103
103
if (processIsinstanceCall(parsed, node))
104
104
return
105
- val type = mypyTypes[parsed.function.beginOffset to parsed.function.endOffset]
106
- val typeDescription = type ?.getPythonAttributeByName(
105
+ val rawType = mypyTypes[parsed.function.beginOffset to parsed.function.endOffset]
106
+ val attr = rawType ?.getPythonAttributeByName(
107
107
storage,
108
108
" __call__"
109
- )?.type?.pythonDescription()
109
+ )
110
+ val type = attr?.type
111
+ val typeDescription = type?.pythonDescription()
110
112
val callType = createPythonCallableType(
111
113
parsed.args.size,
112
114
List (parsed.args.size) { PythonCallableTypeDescription .ArgKind .ARG_POS },
You can’t perform that action at this time.
0 commit comments