File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
utbot-python/src/main/kotlin/org/utbot/python/newtyping Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ class VarDefinition(
69
69
class ExpressionTypeFromMypy (
70
70
val startOffset : Long ,
71
71
val endOffset : Long ,
72
+ val line : Long ,
72
73
val type : MypyAnnotation
73
74
)
74
75
@@ -99,6 +100,9 @@ class MypyAnnotationStorage(
99
100
initAnnotation(it.annotation)
100
101
}
101
102
}
103
+ types.values.flatten().forEach {
104
+ initAnnotation(it.type)
105
+ }
102
106
nodeStorage.values.forEach { node ->
103
107
node.storage = this
104
108
node.children.forEach { initAnnotation(it) }
@@ -128,7 +132,7 @@ class MypyAnnotation(
128
132
)
129
133
}
130
134
return origin
131
- }
135
+ }
132
136
}
133
137
134
138
sealed class PythonAnnotationNode {
@@ -247,7 +251,7 @@ class TypeVarNode(
247
251
get() = super .children + values + (upperBound?.let { listOf (it) } ? : emptyList())
248
252
override fun initializeType () =
249
253
error(" Initialization of TypeVar must be done in defining class or function." +
250
- " TypeVar name: $varName , def_id: $def " )
254
+ " TypeVar name: $varName , def_id: $def " )
251
255
val constraints: Set <TypeParameterConstraint > by lazy {
252
256
val upperBoundConstraint: Set <TypeParameterConstraint > =
253
257
upperBound?.let { setOf (TypeParameterConstraint (upperBoundRelation, it.asUtBotType)) } ? : emptySet()
You can’t perform that action at this time.
0 commit comments