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