Skip to content

fix: support for hikari v2 #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ jobs:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10' ]
os: [ ubuntu, windows ]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu, windows]

name: ${{ matrix.python-version }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Nox
run: pip install nox
- name: Run Nox
run: nox
- name: Upload to CodeCov
uses: codecov/codecov-action@v2
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Nox
run: pip install nox
- name: Run Nox
run: nox
- name: Upload to CodeCov
uses: codecov/codecov-action@v2
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: "3.9"
- name: Install Dependencies
run: pip install poetry
- name: Build & Upload
Expand Down
4 changes: 2 additions & 2 deletions hikari_clusters/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import asyncio
import logging
import traceback
from typing import Any, Coroutine, Generator, Iterable, Type, TypeVar
from typing import Any, Iterable, Type, TypeVar

__all__ = ("TaskManager",)

Expand Down Expand Up @@ -39,7 +39,7 @@ def next_tid(self) -> int:

def create_task(
self,
coro: Generator[Any, None, _T] | Coroutine[Any, None, _T],
coro: asyncio._CoroutineLike[_T],
*,
name: str | None = None,
ignored_exceptions: Iterable[Type[Exception]] = tuple(),
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length=79
skip-magic-trailing-comma=true
line-length = 79
skip-magic-trailing-comma = true

[tool.poetry]
name = "hikari-clusters"
Expand All @@ -15,8 +15,8 @@ documentation = "https://github.com/TrigonDev/hikari-clusters/wiki"
keywords = ["hikari", "discord", "clustering", "bot", "ipc"]

[tool.poetry.dependencies]
python = ">=3.8.0,<3.12"
hikari = "^2.0.0.dev105"
python = ">=3.9,<3.14"
hikari = "^2.0.0"
websockets = "^11.0"
pytest-cov = ">=3,<5"

Expand Down
Loading