From 1a9d4db75eea601761354b0c1d3704319bb04ebc Mon Sep 17 00:00:00 2001 From: yupix Date: Tue, 4 Oct 2022 15:59:38 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Self=E3=81=AE=E3=82=A4=E3=83=B3=E3=83=9D?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=8C=E5=87=BA=E6=9D=A5=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=81=AE=E3=81=A7=E5=88=A5=E3=81=AE=E6=96=B9=E6=B3=95=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mipac/models/note.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mipac/models/note.py b/mipac/models/note.py index 089af12..4e5c0ab 100644 --- a/mipac/models/note.py +++ b/mipac/models/note.py @@ -3,7 +3,6 @@ from __future__ import annotations from datetime import datetime from typing import TYPE_CHECKING, Literal, Optional -from typing_extensions import Self from mipac.exception import NotExistRequiredData from mipac.models.lite.user import LiteUser @@ -192,7 +191,7 @@ class Note: return self.__note['emojis'] @property - def renote(self) -> Self | None: + def renote(self) -> 'Note' | None: return ( Note(note=self.__note['renote'], client=self._client) if 'renote' in self.__note @@ -200,7 +199,7 @@ class Note: ) @property - def reply(self) -> Self | None: + def reply(self) -> 'Note' | None: return ( Note(note=self.__note['renote'], client=self._client) if 'renote' in self.__note