Limitations of relative imports
還沒有人認領這個 Issue。
評估
研究方向
該 issue 提到了相對匯入、package 的 init 檔案以及作為 Ansible module utils 的使用方式,但沒有指定具體的原始檔或測試。首先檢查 package 的匯入結構和遷移要求;目前,該 issue 沒有定義必須進行的變更或完成標準。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Python
- 星號
- 44
- 分支
- 29
- 平均合併
- 3 小時 34 分鐘
- 30 天內合併 PR
- 2
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
dataiku/dataiku-api-client-python 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 55/100
-
難度 2/5 1-3 小時 新手友好度 45/100
-
難度 4/5 3-5 天 新手友好度 30/100
dataiku/dataiku-api-client-python#335 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
-
難度 3/5 1-2 天 新手友好度 35/100
查看 dataiku/dataiku-api-client-python 的全部 Issue
相似的 Issue
-
🐛 Bug 🔔 Pending processing
難度 2/5 1-3 小時 新手友好度 84/100
jumpserver/jumpserver#17584 ·
-
link-check link-check:sphinx-theme
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 2/5 1-3 小時 新手友好度 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
難度 2/5 1-3 小時 新手友好度 88/100
OpenHands/extensions#626 · 1 則留言 ·
-
難度 1/5 1 小時以內 新手友好度 90/100
CSCfi/sd-search-api#39 ·