redflag icon indicating copy to clipboard operation
redflag copied to clipboard

Fix mypy errors

Open kwinkunks opened this issue 2 years ago • 1 comments

There's a lot of stuff I don't understand about mypy. So there are quite a few errors... I could use help fixing them if anyone has experience with it.

kwinkunks avatar Dec 08 '22 21:12 kwinkunks

We are getting the warnings because of this configuration https://github.com/agilescientific/redflag/blob/31a60435959c9c4de667edf71ee13d67cdce2a60/pyproject.toml#L15

When I ran mypy locally I got warnings like this, I don't see any mistake in the functions return type.

image

Return type is matching but still mypy gives the error, so changing the configuration might help.

image


Similar issue on mypy GitHub page, https://github.com/python/mypy/issues/5697

nkilm avatar Dec 09 '22 17:12 nkilm