Namespace packages supported by default?
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 20.6k
- Fork
- 3.3k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
I notice in the changelog that 0.990 adds support for namespace packages by default.
I've been using mypy on namespace packages (jaraco, svg, backports, and others) for some time now (https://github.com/jaraco/skeleton/commit/7455f2f25310b2d778a648e45d32033ccc790946).
With the release of mypy 0.990, however, tests have started failing across all projects with namespace packages:
error: Source file found twice under different module names: "collections" and "jaraco.collections"
The change log indicates that 0.990 adds support for namespace packages by default. Annoyingly, this change has had the opposite effect for my projects. I find that I can restore functionality by adding explicit_package_bases = True to the config file (or equivalent command line). It's slightly annoying to have to add this configuration to all of my projects just to support some projects with namespace packages.
Is it possible that explicit package bases will become default in the future?
Guida per i contributori
Apri la guida per i contributori
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
Esamina il changelog di mypy 0.990 e il comportamento della configurazione explicit_package_bases. Riproduci l’errore di modulo duplicato con un progetto di pacchetto namespace come jaraco o backports, quindi determina il comportamento predefinito previsto. Il lavoro sarà considerato completato quando sarà stato deciso un comportamento predefinito e lo scenario di pacchetto namespace interessato funzionerà oppure sarà documentato chiaramente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100