python / python/mypy_extensions
`test_py36_class_syntax_usage` fails on py 3.14.0a6
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 155
- Fork
- 39
- Merge medio
- 7h 36m
- PR unite (30g)
- 1
Descrizione
=================================== FAILURES ===================================
_________________ TypedDictTests.test_py36_class_syntax_usage __________________
self = <testextensions.TypedDictTests testMethod=test_py36_class_syntax_usage>
def test_py36_class_syntax_usage(self):
self.assertEqual(LabelPoint2D.__name__, 'LabelPoint2D') # noqa
self.assertEqual(LabelPoint2D.__module__, __name__) # noqa
> self.assertEqual(LabelPoint2D.__annotations__, {'x': int, 'y': int, 'label': str}) # noqa
E AssertionError: {'label': <class 'str'>} != {'x': <class 'int'>, 'y': <class 'int'>, 'label': <class 'str'>}
E - {'label': <class 'str'>}
E + {'label': <class 'str'>, 'x': <class 'int'>, 'y': <class 'int'>}
tests/testextensions.py:105: AssertionError
=========================== short test summary info ============================
FAILED tests/testextensions.py::TypedDictTests::test_py36_class_syntax_usage - AssertionError: {'label': <class 'str'>} != {'x': <class 'int'>, 'y': <clas...
========================= 1 failed, 11 passed in 0.08s =========================
Found while building both mypy-extensions 1.0.0 and 1.1.0 on NixOS.
Building against python 3.14.0a6. Python 3.14 is expected to release 2025-10-07, so there is still time to fix this.
I understand python 3.14 is currently an alpha, but it imo it makes sense to report these things as early as they are found.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il fallimento in tests/testextensions.py con Python 3.14.0a6, concentrandoti su TypedDictTests.test_py36_class_syntax_usage e sulle annotazioni di LabelPoint2D mostrate nel report. Confronta le annotazioni osservate con la mappatura attesa del test e verifica che il test passi senza rompere gli altri 11 test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- testing
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 52/100