[PR #22] [MERGED] Replace deprecated Union and Optional occurrences #26

Closed
opened 2026-02-28 01:19:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tr4nt0r/python-xbox/pull/22
Author: @tr4nt0r
Created: 10/30/2025
Status: Merged
Merged: 10/30/2025
Merged by: @tr4nt0r

Base: mainHead: deprecated_union_optional


📝 Commits (1)

  • 3f85fd0 Replace deprecated Union and Optional occurrences

📊 Changes

22 files changed (+275 additions, -295 deletions)

View changed files

📝 pyproject.toml (+1 -1)
📝 src/pythonxbox/api/provider/achievements/models.py (+3 -3)
📝 src/pythonxbox/api/provider/catalog/models.py (+147 -147)
📝 src/pythonxbox/api/provider/cqs/models.py (+6 -6)
📝 src/pythonxbox/api/provider/gameclips/models.py (+1 -2)
📝 src/pythonxbox/api/provider/lists/models.py (+3 -5)
📝 src/pythonxbox/api/provider/mediahub/models.py (+4 -6)
📝 src/pythonxbox/api/provider/message/models.py (+10 -10)
📝 src/pythonxbox/api/provider/presence/models.py (+13 -14)
📝 src/pythonxbox/api/provider/ratelimitedprovider.py (+2 -4)
📝 src/pythonxbox/api/provider/screenshots/models.py (+2 -2)
📝 src/pythonxbox/api/provider/smartglass/__init__.py (+3 -4)
📝 src/pythonxbox/api/provider/smartglass/models.py (+22 -23)
📝 src/pythonxbox/api/provider/titlehub/__init__.py (+6 -8)
📝 src/pythonxbox/api/provider/titlehub/models.py (+22 -22)
📝 src/pythonxbox/api/provider/userstats/__init__.py (+4 -6)
📝 src/pythonxbox/api/provider/userstats/models.py (+9 -11)
📝 src/pythonxbox/authentication/manager.py (+2 -3)
📝 src/pythonxbox/authentication/models.py (+9 -10)
📝 src/pythonxbox/authentication/xal.py (+1 -1)

...and 2 more files

📄 Description

Sets ruff target to py310


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/tr4nt0r/python-xbox/pull/22 **Author:** [@tr4nt0r](https://github.com/tr4nt0r) **Created:** 10/30/2025 **Status:** ✅ Merged **Merged:** 10/30/2025 **Merged by:** [@tr4nt0r](https://github.com/tr4nt0r) **Base:** `main` ← **Head:** `deprecated_union_optional` --- ### 📝 Commits (1) - [`3f85fd0`](https://github.com/tr4nt0r/python-xbox/commit/3f85fd0c1039c9c2c206f8dbfea51420cd8d7300) Replace deprecated Union and Optional occurrences ### 📊 Changes **22 files changed** (+275 additions, -295 deletions) <details> <summary>View changed files</summary> 📝 `pyproject.toml` (+1 -1) 📝 `src/pythonxbox/api/provider/achievements/models.py` (+3 -3) 📝 `src/pythonxbox/api/provider/catalog/models.py` (+147 -147) 📝 `src/pythonxbox/api/provider/cqs/models.py` (+6 -6) 📝 `src/pythonxbox/api/provider/gameclips/models.py` (+1 -2) 📝 `src/pythonxbox/api/provider/lists/models.py` (+3 -5) 📝 `src/pythonxbox/api/provider/mediahub/models.py` (+4 -6) 📝 `src/pythonxbox/api/provider/message/models.py` (+10 -10) 📝 `src/pythonxbox/api/provider/presence/models.py` (+13 -14) 📝 `src/pythonxbox/api/provider/ratelimitedprovider.py` (+2 -4) 📝 `src/pythonxbox/api/provider/screenshots/models.py` (+2 -2) 📝 `src/pythonxbox/api/provider/smartglass/__init__.py` (+3 -4) 📝 `src/pythonxbox/api/provider/smartglass/models.py` (+22 -23) 📝 `src/pythonxbox/api/provider/titlehub/__init__.py` (+6 -8) 📝 `src/pythonxbox/api/provider/titlehub/models.py` (+22 -22) 📝 `src/pythonxbox/api/provider/userstats/__init__.py` (+4 -6) 📝 `src/pythonxbox/api/provider/userstats/models.py` (+9 -11) 📝 `src/pythonxbox/authentication/manager.py` (+2 -3) 📝 `src/pythonxbox/authentication/models.py` (+9 -10) 📝 `src/pythonxbox/authentication/xal.py` (+1 -1) _...and 2 more files_ </details> ### 📄 Description Sets ruff target to py310 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 01:19:13 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/python-xbox#26
No description provided.