dataiku / dataiku/dataiku-api-client-python
Limitations of relative imports
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 44
- Fork
- 29
- Merge medio
- 3h 34m
- PR unite (30g)
- 2
Descrizione
Relative imports can have various impacts when the package is used from an external script, since said script may execute in the right virtual env but maybe not the right python context module wise.
There is two solutions to this:
- Expose symbols between modules in the main init file
- Use fully qualified imports
Unfortunately, the fully qualified break the possibility to "relocate" the module, ie, making it a submodule of another, which is required here for it to be usable as Ansible module utils.
No action is specifically required, this issue is merely a reminder of previous work in case the question arise later on.
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
L’issue cita gli import relativi, il file init del package e l’uso come Ansible module utils, ma non indica alcun file sorgente o test specifico. Esamina innanzitutto la struttura degli import del package e il requisito di spostamento; al momento, l’issue non definisce alcuna modifica richiesta né alcun criterio di completamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- tooling
- Tipo di issue
- Refactoring
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 20/100