Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Annotation Enhancement in mantidimaging/core/ Directory #2283

Merged
merged 7 commits into from
Jul 18, 2024

Conversation

ashmeigh
Copy link
Collaborator

@ashmeigh ashmeigh commented Jul 16, 2024

Description

Added type annotations to various files within the mantidimaging/core/ 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 adequately covered by existing unit tests.

Acceptance Criteria

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. understand this write on for mantidimaging/gui/ in general

@ashmeigh ashmeigh changed the title Type ann core 1 Type Annotation Enhancement in mantidimaging/core/ Directory Jul 16, 2024
i made changes to my main by mistake
@coveralls
Copy link

coveralls commented Jul 16, 2024

Coverage Status

coverage: 73.124% (+0.003%) from 73.121%
when pulling b7abb1f on Type_Ann_core_1
into 9ede0f0 on main.

Copy link
Collaborator

@samtygier-stfc samtygier-stfc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small changes

mantidimaging/core/utility/command_line_arguments.py Outdated Show resolved Hide resolved
mantidimaging/core/utility/execution_timer.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@samtygier-stfc samtygier-stfc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks

@samtygier-stfc samtygier-stfc added this pull request to the merge queue Jul 18, 2024
Merged via the queue into main with commit a19a7df Jul 18, 2024
8 checks passed
@samtygier-stfc samtygier-stfc deleted the Type_Ann_core_1 branch July 18, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants