mirror of
https://github.com/tr4nt0r/python-xbox.git
synced 2026-04-24 23:36:08 +03:00
[PR #86] [MERGED] Fix error when activity is provided #86
Labels
No labels
👻 bug
🐣 good first issue
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/python-xbox#86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/tr4nt0r/python-xbox/pull/86
Author: @tomballgithub
Created: 1/22/2026
Status: ✅ Merged
Merged: 1/22/2026
Merged by: @tr4nt0r
Base:
main← Head:fix_err📝 Commits (5)
b0ce92cFix error when activity is provided, because it is a Dict not a Listbaea0e4Add test to verify activity response doesn't break pydantic check1293a18Merge pull request #1 from tr4nt0r/maince03cdbUse responses file to store json test informationaa18143Add additional json test file📊 Changes
3 files changed (+35 additions, -1 deletions)
View changed files
📝
src/pythonxbox/api/provider/presence/models.py(+1 -1)➕
tests/data/responses/presence_activity.json(+20 -0)📝
tests/test_presence.py(+14 -0)📄 Description
When activity is returned, it is causing an error because it is a dict not a list.
This fixes: #85
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.