We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e8155 commit 6416341Copy full SHA for 6416341
utbot-python/src/main/kotlin/org/utbot/python/newtyping/PythonType.kt
@@ -183,7 +183,8 @@ class PythonCallableTypeDescription(
183
val argumentNames: List<String>,
184
val isClassMethod: Boolean,
185
val isStaticMethod: Boolean
186
-) : PythonTypeDescription(pythonCallableName) {
+): PythonTypeDescription(pythonCallableName) {
187
+ val numberOfArguments = argumentNames.size
188
override fun castToCompatibleTypeApi(type: Type): FunctionType {
189
return type as? FunctionType
190
?: error("Got unexpected type PythonCallableTypeDescription: $type")
0 commit comments