Skip to content

Error when import edward2 #589

@codeOVO

Description

@codeOVO

when i "import edward2 as ed" in .py file, error occurs:
-> from edward2.maps import robust_map
->retry_exception_types: list[type[Exception]] | None = ...
TypeError: unsupported operand type(s) for |: 'TypeVar' and'TypeVar'

this error occirs in maps.py file when its code is "list[U|V]"
my numpy is 1.21.6
python 3.7.3
tensorflow 2.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions