TypeError: __call__(): incompatible function arguments. The following argument types are supported:这是什么错误类型?
时间: 2024-03-04 16:52:58 浏览: 49
这是一个 Python 中的 TypeError 错误。它经常出现在函数或方法被调用时,传递给函数或方法的参数类型不匹配。这个特定的 TypeError 错误通常是因为您正在尝试使用错误的参数类型来调用一个函数或方法,而该函数或方法不支持这些参数类型。解决这个问题的方法是检查函数或方法的文档,查看它所期望的参数类型,并确保传递给函数或方法的参数与其期望的类型匹配。
相关问题
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
Without further context, it is difficult to provide a specific solution. However, this error message typically occurs when you are attempting to initialize an object with arguments that do not match the expected types.
Make sure that the arguments you are passing to the constructor match the expected types and that you are using the correct syntax for the constructor. Double-check that you are using the correct class name and that you have imported the class correctly.
If you continue to have trouble, please provide more information and code snippets so we can better understand the issue.
TypeError: create_bool(): incompatible function arguments. The following argument types are supported: 1. (arg0: bool) -> mediapipe.python._framework_bindings.packet.Packet
这个错误告诉我们 `create_bool()` 函数的参数类型不正确。这个函数需要一个布尔类型的参数,但是你传递的参数类型不对。
请检查一下你传递给 `create_bool()` 函数的参数类型是否正确。如果你不确定参数类型,可以在调用函数之前使用 `type()` 函数检查一下参数的类型。或者,你可以在函数名上按 `Ctrl`+`左键单击`,查看函数的定义和参数类型。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)