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

适配python3.9申请 #22

Closed
ALEXsun0 opened this issue Oct 28, 2023 · 4 comments
Closed

适配python3.9申请 #22

ALEXsun0 opened this issue Oct 28, 2023 · 4 comments

Comments

@ALEXsun0
Copy link

#20 same issue
此错误似乎是由 Python 的类型提示引起的,具体来说是使用了 | 符号来表示联合类型。如在这段代码中:token: str | None = None
这里|符号用于 Python 3.10 及更高版本的类型提示,表示 token 变量可以是 str 类型或 NoneType。然而,这在 Python 3.9 及以下版本是不支持的,于是报错:TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
为了后续版本更新跟进,希望能够进行python3.10以下版本的适配。

@AzideCupric
Copy link
Collaborator

nb本体都快要3.10了

@AzideCupric
Copy link
Collaborator

AzideCupric commented Oct 28, 2023

不过插件最新版已经兼容3.9了

@GuGuMur
Copy link
Owner

GuGuMur commented Oct 28, 2023

大概行了(

@AzideCupric
Copy link
Collaborator

大概行了(

大概确乎真的行了 #25

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

3 participants