Commit da552cc
authored
Fix the Python list_sessions docstring example to use session_id (#2099)
The Example block in CopilotClient.list_sessions printed
session.sessionId, but list_sessions returns list[SessionMetadata], and
that dataclass declares session_id. sessionId exists only as the wire
key, mapped to session_id inside SessionMetadata.from_dict/to_dict, so
anyone copying the documented example hit:
AttributeError: 'SessionMetadata' object has no attribute 'sessionId'
Use the attribute the returned dataclass actually declares. The Go and
.NET bindings already document this method with their own idiomatic
spelling of the same field.
Docstring text only: no public API, behavior, or wire format change.
Co-authored-by: examon <examon@users.noreply.github.com>1 parent 4a8a8e6 commit da552cc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3386 | 3386 | | |
3387 | 3387 | | |
3388 | 3388 | | |
3389 | | - | |
| 3389 | + | |
3390 | 3390 | | |
3391 | 3391 | | |
3392 | 3392 | | |
| |||
0 commit comments