chore: ModerationLogの型を更新

pull/109/head
yupix 7 months ago
parent df9a2209ef
commit c62e81e124
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -90,7 +90,7 @@ class ModerationLog:
return self.__moderation_log["user_id"]
@property
def user(self) -> UserDetailedNotMe | MeDetailed:
def user(self) -> UserDetailedNotMe:
return packed_user(self.__moderation_log["user"], client=self.__client)
def __eq__(self, __value: object) -> bool:

@ -1,9 +1,8 @@
from __future__ import annotations
from typing import TYPE_CHECKING, TypedDict
from typing import TypedDict
if TYPE_CHECKING:
from mipac.types.user import IUserDetailed
from mipac.types.user import IUserDetailedNotMeSchema
class IUserIP(TypedDict):
@ -30,7 +29,7 @@ class IModerationLog(TypedDict):
type: str
info: dict # TODO: これ何?
user_id: str
user: IUserDetailed
user: IUserDetailedNotMeSchema
class IServerInfoCpu(TypedDict):

Loading…
Cancel
Save