Skip to content

When running a game, I get a TypeError #26

@BastienPasdeloup

Description

@BastienPasdeloup

If when running a game script you get the following error:

TypeError: unsupported operand type(s) for |: 'type' and 'type

The reason is that you have a version of Python that is a bit too old, as this syntax for type hinting is supported since Python 3.10. Please upgrade to the latest version of Python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    during gameProblems that appear when playing a PyRat gamesolvedThis problem has a solution

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions