Skip to content

Enhance bubble sort docstrings and type hints#12966

Closed
ibirothe wants to merge 4 commits intoTheAlgorithms:masterfrom
ibirothe:master
Closed

Enhance bubble sort docstrings and type hints#12966
ibirothe wants to merge 4 commits intoTheAlgorithms:masterfrom
ibirothe:master

Conversation

@ibirothe
Copy link
Copy Markdown

  • Corrected minor inconsistencies in examples (e.g., bubble_sort_recursive([]) instead of bubble_sort_iterative([])).
  • Added TypeVar for type hints to better reflect that functions accept lists of comparable elements (int, float, str) instead of arbitrary Any objects.
  • Improves code readability, type safety, and aligns with Python typing best practices.

@algorithms-keeper algorithms-keeper Bot added awaiting reviews This PR is ready to be reviewed tests are failing Do not merge until tests pass labels Sep 13, 2025
@ibirothe ibirothe closed this by deleting the head repository Sep 13, 2025
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 tests are failing Do not merge until tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant