Skip to content

Syntax error on Python 3.8 and 3.9 #53

@SamuelWAnderson45

Description

@SamuelWAnderson45

pyproject.toml says the project supports python 3.8 and up. However, __init__.py uses the union type expression syntax Optional[str | bytes] which was only added in Python 3.10.

Either the version requirement should be raised, or the syntax should be reverted to the old version, i.e. Optional[Union[str, bytes]]

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