microsoftgraph / microsoftgraph/msgraph-sdk-python
Type mismatch: ParseNode.get_object_value(Parsable)
未關閉
還沒有人認領這個 Issue。
bug
- 主要語言
- Python
- 星號
- 630
- 分支
- 96
- 平均合併
- 15 小時 20 分鐘
- 30 天內合併 PR
- 3
描述
ParseNode.get_object_value(Parsable) expects its arg to be of type Parsable. When you however pass to it ConnectionOperation.create_from_discriminator_value() which returns an instance of ConnectionOperation which inherits from Entity which inherits from Parsable, you get an error saying that ConnectionOperation is not compatible with Parsable.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,透過 SDK 的型別定義追蹤 ParseNode.get_object_value(Parsable) 和 ConnectionOperation.create_from_discriminator_value()。重現已回報的型別檢查錯誤,並找出相關的繼承宣告;當有效的 ConnectionOperation 用法能夠作為 Parsable 被接受,且不引入不相容的型別時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- api, backend-api-design
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 32/100