Skip to content

mypy failing in examples using filter_by and other functions #3

@noahskelton

Description

@noahskelton

mypy doesn't pass using the examples in this repo in my environment.

Steps to reproduce using Python 3.8.5:

  1. Clone this repo
  2. pip install .
  3. mypy examples

Output:

examples/sample.py:31: error: Incompatible type for argument "name" (got "int", expected "Optional[str]")
examples/sample.py:32: error: Call to untyped function "filter_by" in typed context
examples/sample.py:37: error: Call to untyped function "filter_by" in typed context
Found 3 errors in 1 file (checked 4 source files)

I get similar issues in my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions