Skip to content

Update type hints for linear search functions#14657

Open
dvanhu wants to merge 2 commits intoTheAlgorithms:masterfrom
dvanhu:add-type-hints-linear-search
Open

Update type hints for linear search functions#14657
dvanhu wants to merge 2 commits intoTheAlgorithms:masterfrom
dvanhu:add-type-hints-linear-search

Conversation

@dvanhu
Copy link
Copy Markdown

@dvanhu dvanhu commented May 8, 2026

  • I have read CONTRIBUTING.md
  • This pull request is all my own work
  • I know why this pull request was created

Fixes #14592

Changes Made

  • Added missing type hints to linear_search
  • Added missing type hints to rec_linear_search
  • Improved type clarity and readability
  • Preserved existing functionality

Reason

This improves maintainability and aligns the implementation with modern Python typing practices.

@algorithms-keeper algorithms-keeper Bot added enhancement This PR modified some existing files awaiting reviews This PR is ready to be reviewed labels May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed enhancement This PR modified some existing files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add missing type hints to functions in searches/linear_search.py

2 participants