From 71bb37127cebb296ed409b0847d61606315d14bf Mon Sep 17 00:00:00 2001 From: yyoung Date: Wed, 22 Nov 2023 22:34:17 +0800 Subject: [PATCH] fix: Python 3.8 typing syntax --- nazurin/sites/misskey/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nazurin/sites/misskey/models.py b/nazurin/sites/misskey/models.py index 56854b9d..ee7370d2 100644 --- a/nazurin/sites/misskey/models.py +++ b/nazurin/sites/misskey/models.py @@ -1,4 +1,4 @@ -from typing import Optional +from typing import List, Optional from pydantic import BaseModel, ConfigDict @@ -38,5 +38,5 @@ class Note(BaseModel): userId: str user: User text: Optional[str] - files: list[File] + files: List[File] uri: Optional[str] = None