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

Expected one type argument after "Optional" Pylance reportInvalidTypeForm #63

Open
SunSkyLH opened this issue Nov 18, 2024 · 3 comments

Comments

@SunSkyLH
Copy link

xuance\torch\agents\core\off_policy_marl.py

OffPolicyMARLAgents类中__init__方法,self.memory: Optional[MARL_OffPolicyBuffer, MARL_OffPolicyBuffer_RNN] = None
这句代码的Optional使用了多个类型 MARL_OffPolicyBuffer, MARL_OffPolicyBuffer_RNN,提示报错

@wenzhangliu
Copy link
Collaborator

Could you please post the error message?

@SunSkyLH
Copy link
Author

xuance

@wenzhangliu
Copy link
Collaborator

What happens if you ignore it and run the code? Will any errors be printed?

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

2 participants