Skip to content

mypy argtype failure in ui_server.py with mypy>=1.11 #4462

@cburroughs

Description

@cburroughs

Expected Behavior

Type checking should pass!

Current Behavior

With mypy 1.11

feast/ui_server.py:54: error: Argument 1 to "files" has incompatible type "str | None"; expected "str | Module"  [arg-type]
feast/ui_server.py:54: note: Error code "arg-type" not covered by "type: ignore" comment

Steps to reproduce

  • Get your dev environment to the point where you can run make lint-python
  • pip install --upgrade 'mypy>=1.11'
  • make lint-python` --> the above error

Specifications

  • Version: main

Possible Solution

Presumably mypy has identified a nullness bug, or a bug in itself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions