From 3f4049c5f4829efd159026b574992d25b18c70c2 Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Tue, 19 Mar 2024 10:48:20 -0700 Subject: [PATCH] Fix Python 3.10 compatibility detail --- comfy/model_downloader_types.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/comfy/model_downloader_types.py b/comfy/model_downloader_types.py index 2c5d522a2..788af7eb8 100644 --- a/comfy/model_downloader_types.py +++ b/comfy/model_downloader_types.py @@ -2,7 +2,8 @@ from __future__ import annotations import dataclasses from os.path import split -from typing import Optional +from typing import Optional, List +from typing_extensions import TypedDict, NotRequired @dataclasses.dataclass @@ -51,9 +52,6 @@ class HuggingFile: return split(self.filename)[-1] -from typing import TypedDict, List, Optional, NotRequired - - class CivitStats(TypedDict): downloadCount: int favoriteCount: NotRequired[int]