Skip to content

Union in source code doesn't work with old python3 version #6

@bayram-dev

Description

@bayram-dev

Python 3.9.21
soft-assert==1.0.5

I get an error trying to use library

test.py:5: in <module>
    from soft_assert import check, verify
.local/lib/python3.9/site-packages/soft_assert/__init__.py:1: in <module>
    from .soft_assert import (
.local/lib/python3.9/site-packages/soft_assert/soft_assert.py:16: in <module>
    def get_last_failure() -> str | None:

The reasons why -- this feature announced in version Python >= 3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions