Skip to content

Add type hints to test_links.py (#532)#682

Open
AdityaGupta716 wants to merge 5 commits intoneuroinformatics-unit:mainfrom
AdityaGupta716:add-type-hints-tests-532
Open

Add type hints to test_links.py (#532)#682
AdityaGupta716 wants to merge 5 commits intoneuroinformatics-unit:mainfrom
AdityaGupta716:add-type-hints-tests-532

Conversation

@AdityaGupta716
Copy link

Description

This PR adds type hints to test files, specifically addressing issue #532 "Extend type hints to tests".

What is this PR?

  • Addition of a new feature

Why is this PR needed?

Currently, type hints are not added to tests to avoid maintenance burden. However, type hints can improve code readability and catch potential bugs. This PR demonstrates adding type hints to test functions as a first step.

What does this PR do?

  • Add return type hint (-> None) to the test_links() function in tests/tests_unit/test_links.py
  • This is a focused, minimal change that shows the pattern for extending type hints to other test files

References

Closes #532

How has this PR been tested?

  • No functional changes to the test logic, only type hints added
  • The test continues to pass as expected

AdityaGupta716 and others added 5 commits February 7, 2026 12:51
…euroinformatics-unit#617)

Updated keyboard shortcut tooltips in tooltips.py to emphasize CTRL+C (with SHIFT) instead of CTRL+Q for copying filepath to clipboard. CTRL+Q quits the application on macOS, so CTRL+C is the more appropriate shortcut for users on that platform.
Add module docstring for custom exceptions.
- Add return type hint (-> None) to test_links() function
- This is part of the effort to extend type hints to test files as described in issue neuroinformatics-unit#532
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.

1 participant