Midscene-Python
Midscene-Python copied to clipboard
python3.10, 报错type' object is not subscriptable
\Midscene-Python\midscene\android\agent.py", line 11, in
Python3.13.2运行有类似的问题,需要在core/agent.py中添加几行代码,就可以运行了
from typing import Generic, TypeVar
# 定义类型变量
T = TypeVar('T')
class Agent(Generic[T]):
...