2024-04-19 03:41:46 发布
网友
我希望autocomplete告诉我obj是str类型(来自基类),但它说的是Model。我做错什么了吗?你知道吗
str
Model
您已经将TypeVar指定为'Model'。相反,应该使用def save(self, obj: str)作为函数定义。你知道吗
TypeVar
'Model'
def save(self, obj: str)
您已经将
TypeVar
指定为'Model'
。相反,应该使用def save(self, obj: str)
作为函数定义。你知道吗相关问题 更多 >
编程相关推荐