functools.update_wrapper breaks the signature of functools.partial objects
Abierto
Nadie ha tomado este issue todavía.
stdlib
type-bug
- Lenguaje dominante
- Python
- Estrellas
- 77.2k
- Forks
- 36k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
| BPO | 46761 |
|---|---|
| Nosy | @ncoghlan, @larryhastings, @1st1, @isidentical, @ofey404 |
| PRs | |
| Files |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2022-02-15.18:06:14.844>
labels = ['type-bug', '3.8', '3.9', '3.10', '3.11', '3.7', 'library']
title = 'functools.update_wrapper breaks the signature of functools.partial objects'
updated_at = <Date 2022-03-26.12:36:12.144>
user = 'https://github.com/larryhastings'
bugs.python.org fields:
activity = <Date 2022-03-26.12:36:12.144>
actor = 'ncoghlan'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2022-02-15.18:06:14.844>
creator = 'larry'
dependencies = []
files = ['50625', '50639']
hgrepos = []
issue_num = 46761
keywords = ['patch']
message_count = 21.0
messages = ['413299', '413557', '413688', '413778', '413814', '413833', '413876', '413896', '414175', '414176', '414638', '414890', '414937', '415024', '415025', '416023', '416024', '416025', '416028', '416031', '416060']
nosy_count = 7.0
nosy_names = ['ping', 'ncoghlan', 'larry', 'grahamd', 'yselivanov', 'BTaskaya', 'ofey404']
pr_nums = ['31529']
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue46761'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10', 'Python 3.11']
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.
Línea de trabajo
Revisa el PR #31529 y los dos archivos de prueba vinculados, update_wrapper.breaks.partial.signature.test.py y update_wrapper.breaks.partial.signature.check.wrapped.py. Empieza reproduciendo el comportamiento de la signatura de functools.partial descrito en el título y, después, usa las pruebas para verificar que update_wrapper ya no lo rompe.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100