mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-15 07:52:35 +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
|
import dataclasses
|
||||||
from os.path import split
|
from os.path import split
|
||||||
from typing import Optional
|
from typing import Optional, List
|
||||||
|
from typing_extensions import TypedDict, NotRequired
|
||||||
|
|
||||||
|
|
||||||
@dataclasses.dataclass
|
@dataclasses.dataclass
|
||||||
@ -51,9 +52,6 @@ class HuggingFile:
|
|||||||
return split(self.filename)[-1]
|
return split(self.filename)[-1]
|
||||||
|
|
||||||
|
|
||||||
from typing import TypedDict, List, Optional, NotRequired
|
|
||||||
|
|
||||||
|
|
||||||
class CivitStats(TypedDict):
|
class CivitStats(TypedDict):
|
||||||
downloadCount: int
|
downloadCount: int
|
||||||
favoriteCount: NotRequired[int]
|
favoriteCount: NotRequired[int]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user