microsoftgraph / microsoftgraph/msgraph-sdk-python
Create TableRow API reference example raises TypeError "unexpected keyword argument 'values'"
Open
@jesperschlegel is already working on this.
Since Oct 16, 2024.
Needs: Attention :wave:
type:bug
- Dominant language
- Python
- Stars
- 630
- Forks
- 96
- Avg merge
- 15h 20m
- Merged PRs (30d)
- 3
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.