microsoftgraph / microsoftgraph/msgraph-sdk-python

Create TableRow API reference example raises TypeError "unexpected keyword argument 'values'"

未关闭
#926 5 条评论 0 个 reaction 已指派 2 人 在 GitHub 查看

@jesperschlegel 已经在做这个了。

开始于 2024年10月16日。

Needs: Attention :wave: type:bug
主要语言
Python
星标
630
派生
96
平均合并
15 小时 20 分钟
30 天内合并 PR
3

描述

Describe the bug

Initializing a WorkbookTableRow as described in the API reference results in a TypeError.

Expected behavior

Correct initialization of a WorkbookTableRow in order to append a row to a workbook table.

How to reproduce
# from https://learn.microsoft.com/en-us/graph/api/table-post-rows?view=graph-rest-1.0&tabs=python
from msgraph.generated.models.workbook_table_row import WorkbookTableRow

request_body = WorkbookTableRow(
	values = [
		[
			1,
			2,
			3,
		],
		[
			4,
			5,
			6,
		],
	],
)
SDK Version

1.10.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Traceback (most recent call last):
  File "example.py", line 3, in <module>
    request_body = WorkbookTableRow(
TypeError: WorkbookTableRow.__init__() got an unexpected keyword argument 'values'
Configuration

No response

Other information

No response

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。