mantidproject / mantidimaging

Graphical toolkit for neutron imaging.
https://mantidproject.github.io/mantidimaging
GNU General Public License v3.0
10 stars 6 forks source link

Add Type Annotations for Improved Type Safety in Windows #2251

Open ashmeigh opened 4 days ago

ashmeigh commented 4 days ago

Description

Added type annotations to various functions and methods within the mantidimaging/gui/windows directory to enhance type safety and improve code maintainability. These annotations ensure clearer function signatures and better compatibility with Python type checkers like mypy.

Testing

Type annotations do not introduce runtime errors. Functionality across affected modules remains intact. All affected code paths are covered by existing unit tests.

Acceptance Criteria

Mannual testing No linting errors related to type annotations. No type-related runtime errors occur during testing. All affected code paths are adequately covered by existing tests.

coveralls commented 4 days ago

Coverage Status

coverage: 73.144%. remained the same when pulling 55107924ebe872e46dd83f72bd031a1666b5397e on Type_annoations_windows into 24fbed6bcf4c8cf93fd6bbc700d29f748626acb1 on main.