tomlkit 0.15.1 fails on out-of-order table header
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
- #636 de @0xrutabaga — cerrado sin fusionar
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Reproduce with the given document: tomlkit.loads fails with Key "b" already exists while tomllib.loads succeeds. Start from tomlkit's table/key parsing path (the loads entry point and how dotted keys and later [a.b.e] headers merge into an existing [a] table). Done when that document and similar out-of-order headers parse without error and round-trip without changing unrelated style.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
tomlkit 0.15.1 and earlier fail to parse out-of-order table header. The following example is valid TOML and loads fine with stdlib tomllib.
import tomllib, tomlkit
doc = """\
[a]
b.c = 1
b.d = 2
[x]
y = 1
[a.b.e]
f = 3
"""
tomllib.loads(doc) # OK
tomlkit.loads(doc) # ParseError: Key "b" already exists. at line 9 col 0
We noticed this problem while parsing the pyproject.toml file of geventhttpclient-2.5.0 https://raw.githubusercontent.com/geventhttpclient/geventhttpclient/refs/tags/2.5.0/pyproject.toml . See https://github.com/python-wheel-build/fromager/issues/1356
- Lenguaje dominante
- Python
- Estrellas
- 859
- Forks
- 186
- Merge medio
- 4 d 14 h
- PR fusionados (30 d)
- 22
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 python-poetry/tomlkit
-
In-place array repetition changes values without updating serialized TOMLPosiblemente ocupada @harbinresearcher la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
python-poetry/tomlkit#646 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
`dumps(sort_keys=True)` only sorts the top level of a parsed document (nested tables / inline tables / AoT keep original order)Posiblemente ocupada @Sreekant13 la tomó hace 14 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
python-poetry/tomlkit#614 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
toml-test datetime cases use tomlkit's own parse_rfc3339 as the expected value, so they cannot detect datetime parsing bugsPosiblemente ocupada @ekanshul la tomó hace 5 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
python-poetry/tomlkit#603 ·
Los mantenedores suelen responder en 3 días
-
unwrap raises KeyAlreadyPresent for an out-of-order AoT element extensionPosiblemente ocupada @davidpavlovschi la tomó hace 76 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
python-poetry/tomlkit#577 ·
Los mantenedores suelen responder en 3 días
-
Looking for a co-maintainerAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
python-poetry/tomlkit#574 · 5 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de python-poetry/tomlkit
Issues similares
-
area: agents area: docs good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
openapi/gknowledge#23 ·
-
get() for StrEnumPosiblemente ocupada @FeJo5952 la tomó hoy. Abiertogood first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
collective/icalendar#1921 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Improvement Python Spans
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getsentry/sentry-python#7994 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
alphagov/notifications-api#5004 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
equinor/radix-flux#3922 ·
Los mantenedores suelen responder en 1 día