Commit Graph
1 Commits
Author SHA1 Message Date
changshengpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>changshengChristian Clauss
310bb4cadc Add type hints to pancake_sort function (#14745)
* Add type hints to pancake_sort function

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Use modern list[int] type hint instead of deprecated typing.List

* Update pancake_sort to use Sequence and TypeVar

Refactor pancake_sort function to accept any sequence type.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Make pancake_sort generic with type parameter T

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: changsheng <changsheng0804-blip@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2026-08-30 19:00:32 +02:00