Skip to content

Python 3.8.2 doesn't work with mypy linting #1631

@mavysavydav

Description

@mavysavydav

Expected Behavior

Normal linting checks.

Current Behavior

Errors on type comments and doesn't proceed with rest of lint checking.
`(.venv2) [tw-mbp-davidl feast (master)]$ make lint-python
cd /Users/davidl/workspace/feast/sdk/python; mypy feast/ tests/

feast/client.py:411: error: invalid syntax

Found 1 error in 1 file (checked 109 source files)

make: *** [lint-python] Error 2`

Steps to reproduce

Use Python 3.8.2 and run make lint-python.

Specifications

  • Version: 0.10.7
  • Platform: Mac
  • Subsystem: N/A

Possible Solution

Explore alternatives to type comments. Or possibly there's a setting in mypy (or version of mypy) that can work with 3.8.2 better. Maybe type comments are not encouraged in this Python version. Have not investigated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions