Closed
Description
Using mypy 0.660 and Python 3.7, running mypy --warn-return-any
on:
output = filter(lambda x: 2**x < 6, [1, 2, 3, 4])
returns
lambda.py:1: warning: Returning Any from function declared to return "object"
This only occurs when there's the exponentiation (**
) in the lambda: if I change it to a +
or *
.
Metadata
Metadata
Assignees
Labels
No labels