[PR #12] [MERGED] refactor: add __slots__ to class definitions to save memory #54

Closed
opened 2026-02-15 23:16:26 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/stoatchat/python-client-sdk/pull/12
Author: @null8626
Created: 9/4/2021
Status: Merged
Merged: 9/4/2021
Merged by: @Zomatree

Base: masterHead: master


📝 Commits (5)

📊 Changes

13 files changed (+39 additions, -12 deletions)

View changed files

📝 revolt/asset.py (+2 -1)
📝 revolt/channel.py (+7 -1)
📝 revolt/client.py (+2 -0)
📝 revolt/file.py (+4 -5)
📝 revolt/http.py (+2 -0)
📝 revolt/member.py (+2 -0)
📝 revolt/message.py (+2 -0)
📝 revolt/messageable.py (+3 -1)
📝 revolt/role.py (+6 -0)
📝 revolt/server.py (+2 -0)
📝 revolt/state.py (+4 -4)
📝 revolt/user.py (+1 -0)
📝 revolt/websocket.py (+2 -0)

📄 Description

  • added __slots__ to class definitions to save memory usage
  • added color property to Role class as an alias for colour
  • refactored other parts a bit

if you have any issue with this pr please feel free to let me know.


🔄 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/stoatchat/python-client-sdk/pull/12 **Author:** [@null8626](https://github.com/null8626) **Created:** 9/4/2021 **Status:** ✅ Merged **Merged:** 9/4/2021 **Merged by:** [@Zomatree](https://github.com/Zomatree) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (5) - [`681a8c4`](https://github.com/stoatchat/python-client-sdk/commit/681a8c463c3fa21aa31216017983c9996283b9d4) refactor: add __slots__ to class definitions to save memory - [`c598baa`](https://github.com/stoatchat/python-client-sdk/commit/c598baabab6c532e2014b9fa8936f5cbef06b453) Update revolt/channel.py - [`27b6dd7`](https://github.com/stoatchat/python-client-sdk/commit/27b6dd7c3f715a4bb3a5ba2eb679e35294e9dafc) Update revolt/client.py - [`b511ceb`](https://github.com/stoatchat/python-client-sdk/commit/b511ceb1b93abbdafbbcc1b7d5a6cf9e79b383d7) revert changes - [`e100de2`](https://github.com/stoatchat/python-client-sdk/commit/e100de238814b7d22c59401a770ac3204de1d0ed) Merge branch 'master' of https://github.com/vierofernando/revolt.py ### 📊 Changes **13 files changed** (+39 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `revolt/asset.py` (+2 -1) 📝 `revolt/channel.py` (+7 -1) 📝 `revolt/client.py` (+2 -0) 📝 `revolt/file.py` (+4 -5) 📝 `revolt/http.py` (+2 -0) 📝 `revolt/member.py` (+2 -0) 📝 `revolt/message.py` (+2 -0) 📝 `revolt/messageable.py` (+3 -1) 📝 `revolt/role.py` (+6 -0) 📝 `revolt/server.py` (+2 -0) 📝 `revolt/state.py` (+4 -4) 📝 `revolt/user.py` (+1 -0) 📝 `revolt/websocket.py` (+2 -0) </details> ### 📄 Description - added `__slots__` to class definitions to save memory usage - added `color` property to `Role` class as an alias for `colour` - refactored other parts a bit if you have any issue with this pr please feel free to let me know. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 23:16:26 -05:00
yindo closed this issue 2026-02-15 23:16:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#54