Skip to content

Commit 6416341

Browse files
committed
Added numberOfArguments in CallableTypeDescription
1 parent 01e8155 commit 6416341

File tree

1 file changed

+2
-1
lines changed
  • utbot-python/src/main/kotlin/org/utbot/python/newtyping

1 file changed

+2
-1
lines changed

utbot-python/src/main/kotlin/org/utbot/python/newtyping/PythonType.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ class PythonCallableTypeDescription(
183183
val argumentNames: List<String>,
184184
val isClassMethod: Boolean,
185185
val isStaticMethod: Boolean
186-
) : PythonTypeDescription(pythonCallableName) {
186+
): PythonTypeDescription(pythonCallableName) {
187+
val numberOfArguments = argumentNames.size
187188
override fun castToCompatibleTypeApi(type: Type): FunctionType {
188189
return type as? FunctionType
189190
?: error("Got unexpected type PythonCallableTypeDescription: $type")

0 commit comments

Comments
 (0)