Mentions légales du service

Skip to content

Fix mypy errors

SCHOULER Marc requested to merge fix-mypy into master

This MR fixes mypy error undetected by the CI:

mypy melissa/
melissa/server/simulation.py:97: error: Function "numpy.array" is not valid as a type
melissa/server/simulation.py:97: note: Perhaps you need "Callable[...]" or a callback protocol?
melissa/server/simulation.py:108: error: Value of type np.array? is not indexable
melissa/server/simulation.py:126: error: Unsupported target for indexed assignment (np.array?)
melissa/server/SA/SensitivityAnalysisServer.py:353: error: Function "numpy.array" is not valid as a type
melissa/server/SA/SensitivityAnalysisServer.py:353: note: Perhaps you need "Callable[...]" or a callback protocol?
melissa/server/SA/SensitivityAnalysisServer.py:360: error: Value of type np.array? is not indexable
melissa/server/SA/SensitivityAnalysisServer.py:361: error: Value of type np.array? is not indexable
melissa/server/SA/SensitivityAnalysisServer.py:362: error: Unsupported target for indexed assignment (np.array?)
melissa/server/SA/SensitivityAnalysisServer.py:364: error: Value of type np.array? is not indexable
melissa/server/SA/SensitivityAnalysisServer.py:368: error: Value of type np.array? is not indexable
melissa/server/SA/SensitivityAnalysisServer.py:369: error: Value of type np.array? is not indexable

Merge request reports