mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-28 21:45:27 +08:00
Annotate the unambiguous, primitive/container-returning public methods flagged by ruff ANN201 across data_structures/ (int/bool/float/list/dict and one fluent self-return). Reduces ANN201 in this directory from 58 to 36. Element-typed and sentinel-union returns (e.g. node .data getters, dict|False in the Sudoku solver) are intentionally left for follow-up, since they warrant generics/TypeVar or a type checker rather than a guess. Refs #15296