Fix mypy errors in lu_decomposition.py (attempt 2)
#8100
Merged
mypy errors in lu_decomposition.py (attempt 2)
#8100