redflag
redflag copied to clipboard
Fix mypy errors
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.
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.
Return type is matching but still mypy gives the error, so changing the configuration might help.
Similar issue on mypy GitHub page, https://github.com/python/mypy/issues/5697