Skip to content

Commit a92de74

Browse files
committed
Added length in a subscription for channels following
1 parent 5387243 commit a92de74

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

IreneAPIWrapper/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
__title__ = "IreneAPIWrapper"
44
__author__ = "MujyKun"
55
__license__ = "MIT"
6-
__version__ = "2.3.1"
6+
__version__ = "2.3.2"

IreneAPIWrapper/models/subscription.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def __init__(
4949
def __iter__(self):
5050
return self._followed.__iter__()
5151

52+
def __len__(self):
53+
return len(self._followed)
54+
5255
def __eq__(self, other):
5356
return self.id == other.id
5457

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "IreneAPIWrapper"
3-
version = "2.3.1"
3+
version = "2.3.2"
44
description = "The Wrapper for the Websocket and REST API of Irene."
55
authors = ["MujyKun <[email protected]>"]
66
classifiers = [

0 commit comments

Comments
 (0)