Registry types inconsistency
還沒有人認領這個 Issue。
評估
研究方向
從 generate_latest 編碼器入口開始,比較其對 CollectorRegistry 和 RestrictedRegistry 的處理方式。確定登錄檔類型之間預期的關係,並驗證所選擇的設計使 RestrictedRegistry 在任何需要 CollectorRegistry 的地方都可以被接受。
由索引模型根據 Issue 內容生成。
描述
Encoder generate_latest (for example) accepts registry of CollectorRegistry type but it doesn't accept registry of RestrictedRegistry type so it is not consistent. I guess RestrictedRegistry class should inherit CollectorRegistry class because instance of it can be passed to encoders (maybe not only encoders).
Another option is to inherit RestrictedRegistry class from Collector class because CollectorRegistry is inherited from this class, but then anything that accepts CollectorRegistry type should be changed to accept Collector type.
- 主要語言
- Python
- 星號
- 4.4k
- 分支
- 876
- 平均合併
- 8 天 4 小時
- 30 天內合併 PR
- 1
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
prometheus/client_python 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 70/100
prometheus/client_python#1177 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
prometheus/client_python#1210 ·
-
難度 2/5 1-3 小時 新手友好度 58/100
prometheus/client_python#1199 · 1 個 reaction ·
-
難度 5/5 一週以上 新手友好度 35/100
prometheus/client_python#1176 ·
-
難度 1/5 1-3 小時 新手友好度 52/100
prometheus/client_python#1126 · 2 則留言 ·
查看 prometheus/client_python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 86/100
browser-use/browser-use#5905 ·
-
type: enhancement
難度 2/5 1-3 小時 新手友好度 68/100
ynput/ayon-python-api#363 ·
-
bug needs triage
難度 2/5 1-3 小時 新手友好度 88/100
modelscope/FunASR#3728 ·
-
難度 2/5 1-3 小時 新手友好度 88/100
open-compass/opencompass#2655 ·