From 6dfd33d4fbf2a0a47181290eedf67d9792865119 Mon Sep 17 00:00:00 2001 From: penguinboi Date: Thu, 12 Feb 2026 10:20:02 -0500 Subject: [PATCH 1/2] fix 'Command' not found in checks.py --- matrix/__init__.py | 2 +- matrix/checks.py | 2 +- pyproject.toml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/matrix/__init__.py b/matrix/__init__.py index e5a749d..2ad8ae1 100644 --- a/matrix/__init__.py +++ b/matrix/__init__.py @@ -1,6 +1,6 @@ """A simple, developer-friendly library to create powerful Matrix bots.""" -__version__ = "1.0.3-alpha" +__version__ = "1.0.4-alpha" from .bot import Bot from .group import Group diff --git a/matrix/checks.py b/matrix/checks.py index eee4b61..6c89abd 100644 --- a/matrix/checks.py +++ b/matrix/checks.py @@ -14,7 +14,7 @@ def cooldown(rate: int, period: float) -> Callable: :type period: float """ - def wrapper(cmd: Command) -> Command: + def wrapper(cmd: 'Command') -> 'Command': cmd.set_cooldown(rate, period) return cmd diff --git a/pyproject.toml b/pyproject.toml index b4b4a1f..791584c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=64", "setuptools_scm>=8"] [project] name = "matrix-python" -version = "1.0.3-alpha" +version = "1.0.4-alpha" authors = [ { name="Simon Roy" }, { name=" Chris Dedman Rollet " } @@ -41,4 +41,4 @@ dev = [ [tool.setuptools] packages = ["matrix"] -license-files = [] \ No newline at end of file +license-files = [] From 9c9271d14e8a6de7ed31fdbd549f4aea8899b232 Mon Sep 17 00:00:00 2001 From: penguinboi Date: Thu, 12 Feb 2026 10:25:57 -0500 Subject: [PATCH 2/2] reformat --- matrix/bot.py | 1 - matrix/checks.py | 2 +- matrix/help/pagination.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/matrix/bot.py b/matrix/bot.py index bb1222d..ab768d4 100644 --- a/matrix/bot.py +++ b/matrix/bot.py @@ -39,7 +39,6 @@ CheckError, ) - Callback = Callable[..., Coroutine[Any, Any, Any]] GroupCallable = Callable[[Callable[..., Coroutine[Any, Any, Any]]], Group] ErrorCallback = Callable[[Exception], Coroutine] diff --git a/matrix/checks.py b/matrix/checks.py index 6c89abd..e3cf848 100644 --- a/matrix/checks.py +++ b/matrix/checks.py @@ -14,7 +14,7 @@ def cooldown(rate: int, period: float) -> Callable: :type period: float """ - def wrapper(cmd: 'Command') -> 'Command': + def wrapper(cmd: "Command") -> "Command": cmd.set_cooldown(rate, period) return cmd diff --git a/matrix/help/pagination.py b/matrix/help/pagination.py index 9acdbb5..137aa67 100644 --- a/matrix/help/pagination.py +++ b/matrix/help/pagination.py @@ -1,6 +1,5 @@ from typing import Optional, List, TypeVar, Generic - T = TypeVar("T")