Refactor: drop redundant list() wrapper around sorted() in formatter.py/text.py
Los mantenedores suelen responder en 2 días
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 90/100
Línea de trabajo
Abre awscli/formatter.py en TableFormatter._group_scalar_keys_from_list y awscli/text.py en _all_scalar_keys. Confirma las tres llamadas especificadas a sorted() y elimina únicamente sus wrappers redundantes de list(); se considera terminado cuando el refactor se limita a esas ubicaciones sin cambios de comportamiento.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
`awscli/formatter.py:209-210` (`TableFormatter._group_scalar_keys_from_list`) and `awscli/text.py:91` (`_all_scalar_keys`) wrap `sorted(...)` in `list(...)`, e.g. `headers = list(sorted(headers))`. `sorted()` already returns a `list`, so the wrapper is a needless no-op call.
Proposed change
Drop the redundant `list()` wrapper in both locations: `headers = sorted(headers)`, `more = sorted(more)`, `return sorted(keys_seen)`. Pure refactor, no behavior change.
- Lenguaje dominante
- Python
- Estrellas
- 17.4k
- Forks
- 4.8k
- Merge medio
- 4 d 3 h
- PR fusionados (30 d)
- 64
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aws/aws-cli
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
feature-request login p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
aws/aws-cli#10739 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
aws history show/list: UnboundLocalError instead of clear error when pager fails to startPosiblemente ocupada @Adityaj0 la tomó hace 85 días. Abiertoneeds-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
CodeArtifact login: auth token leaked unredacted in CommandFailedError via subprocess stderrPosiblemente ocupada @PANYAMHEMANTH la tomó hace 7 días. Abiertocodeartifact login investigating p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 2 días
-
aws configure set s3.* can raise UnboundLocalError when updating nested config blocksPosiblemente ocupada @fallintoplace la tomó hace 171 días. Abiertobug configure p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
aws/aws-cli#10348 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de aws/aws-cli
Issues similares
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
gke-labs/kube-agents#5671 ·
Los mantenedores suelen responder en 1 día
-
docs(auth): Method B step 4 should tell users to tick "Use this client for an AI-powered agent"Abiertodocumentation next-release v0.9.6
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
khuisman/mcp-gee-sweet#1446 ·
Los mantenedores suelen responder en 1 día
-
In-box secret files written before their chmod: lc-creds, stacks tee, and the workspace tokenAbiertomodel:sonnet runtime:claude security size:S
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
FootprintAI/Containarium#3671 ·
Los mantenedores suelen responder en 1 día
-
HolidayBase: reassigning `language` does not re-initialize translations or re-populate holidaysPosiblemente ocupada @shikhabhadoria la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vacanza/holidays#4116 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug CLI exec
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día