Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Type mismatch: ParseNode.get_object_value(Parsable)

未關閉
#402 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
32/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
python

研究方向

首先,透過 SDK 的型別定義追蹤 ParseNode.get_object_value(Parsable) 和 ConnectionOperation.create_from_discriminator_value()。重現已回報的型別檢查錯誤,並找出相關的繼承宣告;當有效的 ConnectionOperation 用法能夠作為 Parsable 被接受,且不引入不相容的型別時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

bug

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.

主要語言
Python
星號
630
分支
96
平均合併
15 小時 20 分鐘
30 天內合併 PR
3

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoftgraph/msgraph-sdk-python 的其他 Issue

查看 microsoftgraph/msgraph-sdk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。