Skip to content

mypy: error: invalid syntax [syntax] at frictionless/dialect/types.py:28 #1593

@amotl

Description

@amotl

Dear @roll,

first things first: Thank you so much for conceiving and maintaining Frictionless. It is true gold.

At daq-tools/skeem#10, we believe we are being tripped by a similar issue already reported at GH-1580 by @aborruso.

At our end, it is the mypy type checker, which fails like:

$ mypy skeem
.venv/lib/python3.10/site-packages/frictionless/dialect/types.py:28: error: invalid syntax  [syntax]
Found 1 error in 1 file (errors prevented further checking)

... when upgrading to frictionless-5.14.x already:

pip install --upgrade "frictionless<5.15"

On the other hand, when downgrading to frictionless-5.13.x:

pip install --upgrade "frictionless<5.14"

... mypy succeeds again:

mypy --install-types --non-interactive skeem
Success: no issues found in 36 source files

With kind regards,
Andreas.

P.S.: We are using the most recent mypy 1.5.1:

$ mypy --version
mypy 1.5.1 (compiled: yes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions