Skip to content

Commit

Permalink
chore: python3.12に向けて色々変更
Browse files Browse the repository at this point in the history
yupix committed Jan 4, 2024
1 parent 7a9239f commit 939b749
Showing 6 changed files with 9 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/doc_build.yml
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Package
run: pip install -e .[doc]
run: |
pip install -e .[doc]
- name: Build Docs
run: python doc_gen.py
4 changes: 1 addition & 3 deletions mipac/actions/channel.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING, AsyncGenerator, Literal

from typing_extensions import override
from typing import TYPE_CHECKING, AsyncGenerator, Literal, override

from mipac.abstract.action import AbstractAction
from mipac.file import MiFile
4 changes: 1 addition & 3 deletions mipac/actions/user.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING, AsyncGenerator, Literal, Optional, overload

from typing_extensions import override
from typing import TYPE_CHECKING, AsyncGenerator, Literal, Optional, overload, override

from mipac.abstract.action import AbstractAction
from mipac.errors.base import NotExistRequiredData, ParameterError
4 changes: 1 addition & 3 deletions mipac/actions/users/list.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING

from typing_extensions import override
from typing import TYPE_CHECKING, override

from mipac.abstract.action import AbstractAction
from mipac.errors.base import ParameterError
5 changes: 3 additions & 2 deletions mipac/types/roles.py
Original file line number Diff line number Diff line change
@@ -2,8 +2,9 @@

from typing import TYPE_CHECKING, Literal, NotRequired, TypedDict, TypeGuard


if TYPE_CHECKING:
from mipac.types.user import IMeDetailed, IUserDetailed
from mipac.types.user import IUserDetailed, IMeDetailedSchema


class IRoleUser(TypedDict):
@@ -14,7 +15,7 @@ class IRoleUser(TypedDict):

class IMeRole(TypedDict):
id: str
user: IMeDetailed
user: IMeDetailedSchema
expires_at: str | None


2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
aiohttp==3.8.5
aiohttp==3.9.1
versioneer

0 comments on commit 939b749

Please sign in to comment.