Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何解决“TypeError: 'dict' object is not callable”错误? #473

Open
bluedancing opened this issue Aug 11, 2022 · 0 comments
Open

Comments

@bluedancing
Copy link

env

OS: win7/ win10 / mac / linux
PYTHON_VERSION: 3.x
EASYTRADER_VERSION: 0.xx.xx
BROKER_TYPE: gj / ht / xq / xxx

problem

华泰的class中,模仿增加了一个function,显示出 “查询新股中签” 的界面,具体代码如下:
@Property
def IsLuck(self):
self._switch_left_menus(["新股申购", "查询新股中签"])
self.wait(0.3)
return {"message": "查询结束!"}
在调用过程中,会出现“TypeError: 'dict' object is not callable”错误,麻烦指点一下,谢谢!

Traceback (most recent call last):
File "E:\code\ht\ipo.py", line 12, in
user.IsLuck()
TypeError: 'dict' object is not callable

非常感谢!

how to repeat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant