Skip to content
This repository was archived by the owner on May 21, 2023. It is now read-only.
This repository was archived by the owner on May 21, 2023. It is now read-only.

What version of Python does this API need to run on?  #5

@huazaizhang

Description

@huazaizhang

What version of Python does this API need to run on? I tried running it on a Python 3.8 environment and it threw an error.
@zeroday0619

File "/Users/zhangweihua/work/workspace/python3workspace/Nintendo_Switch_Online_API_Bridge/nso_bridge/__init__.py", line 3, in <module> from nso_bridge.nsa import NintendoSwitchAccount File "/Users/zhangweihua/work/workspace/python3workspace/Nintendo_Switch_Online_API_Bridge/nso_bridge/nsa.py", line 10, in <module> from nso_bridge.models import ServiceToken, UserInfo File "/Users/zhangweihua/work/workspace/python3workspace/Nintendo_Switch_Online_API_Bridge/nso_bridge/models/__init__.py", line 1, in <module> from nso_bridge.models.accounts import Accounts, Login, ServiceToken File "/Users/zhangweihua/work/workspace/python3workspace/Nintendo_Switch_Online_API_Bridge/nso_bridge/models/accounts.py", line 74, in <module> class Login(BaseModel): File "pydantic/main.py", line 178, in pydantic.main.ModelMetaclass.__new__ File "pydantic/typing.py", line 399, in pydantic.typing.resolve_annotations """Special type construct to mark class variables. File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 270, in _eval_type return t._evaluate(globalns, localns) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 518, in _evaluate eval(self.__forward_code__, globalns, localns), File "<string>", line 1, in <module> TypeError: unsupported operand type(s) for |: 'ModelMetaclass' and 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions