mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
Fix Python 3.10 compatibility detail
This commit is contained in:
parent
74a9c45395
commit
3f4049c5f4
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user