Skip to content

mypy invalid syntax in python version 3.11 and earlier #199

@bpstark

Description

@bpstark

The file https://github.com/rnag/dataclass-wizard/blob/main/dataclass_wizard/utils/object_path.pyi uses the new syntax defined in PEP695 which adds the generic type alias. This new alias was added for python 3.12 and as such causes syntax errors in mypy when checking using python version 3.11 or earlier

Repro:
Python version: 3.11.13
mypy version: 1.17.1
dataclass-wizard version: 0.35.1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions