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
Copy link
Copy Markdown

@mauricio812 mauricio812 left a comment

Choose a reason for hiding this comment

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

Disculpen, soy nuevo en GitHub y me equivoqué de lugar al subir mi código. Ignoren mi actividad aquí, voy a crear mi propio repositorio."

Copy link
Copy Markdown

@mauricio812 mauricio812 left a comment

Choose a reason for hiding this comment

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

Please of new repository

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

3 participants