Fix printing for Operand object
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 48/100
Línea de trabajo
Comienza localizando la implementación de impresión de Operand y lee el issue #19 para obtener contexto adicional. Confirma la salida actual para nombres entre comillas y cadenas vacías; después, modifica la representación para que preserve visiblemente los límites de los operandos, incluido Operand("").
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When an Operand object is printed, if the name contains quotation marks, those marks are not printed (e.g. "hello" creates Operand("hello") which, when printed, appears as hello). This becomes a problem when the empty string ("") shows up as an operand, as nothing is printed. When such an operand (Operand("")) is contained as part of another object, such as CommandInvocationInitial, it will appear as though, when printed, the CommandInvocationInitial object does not actually contain an Operand("") when, in reality, it does. This is quite deceptive and could easily lead to annoying issues that are difficult to debug (in this case, the only way to tell that there is an Operand("") is to check the length of the CommandInvocationInitial object's operand list, which is not intuitive). My proposition would be to forcefully include quotation marks around every operand that is printed to ensure that it is always clear that they exist or to provide some clear indicator that any Operand("") instances are present such as some kind of keyword.
See #19 for more details on the issue.
- Lenguaje dominante
- Python
- Estrellas
- 5
- Forks
- 7
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 binpash/annotations
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
binpash/annotations#27 ·
-
Could we make a generator of the InputOutput and Parallelizability objects from (legacy) jsonAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
binpash/annotations#25 ·
-
Move aggregator tests hereAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
binpash/annotations#17 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
binpash/annotations#16 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
binpash/annotations#12 · 1 comentario ·
Todos los issues de binpash/annotations
Issues similares
-
[Bug]: IndexHandler.post crashes with HTTP 500 on malformed payloads, missing credentials, or when login is disabledPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 6 días
-
Bump zizmor to 1.31.1+Abiertogithub_actions
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
collective/icalendar#2003 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
openzim/python-scraperlib#360 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
volcengine/OpenViking#6445 ·
Los mantenedores suelen responder en 1 día