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/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 eee4b61..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") 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 = []