microsoftgraph / microsoftgraph/msgraph-sdk-python
Create TableRow API reference example raises TypeError "unexpected keyword argument 'values'"
未關閉
@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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
評估
這個 Issue 還沒有評估資料。