mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-15 14:09:36 +00:00
Fixed import (#44)
* fixed import error I had an ImportError: cannot import name 'Protocol' from 'typing' while trying to update so I fixed it to start an app * Update main.py * deleted example files
This commit is contained in:
parent
501f19eec6
commit
165be5828a
@ -14,7 +14,12 @@ import torch
|
|||||||
from torch import Tensor
|
from torch import Tensor
|
||||||
from torch.utils.checkpoint import checkpoint
|
from torch.utils.checkpoint import checkpoint
|
||||||
import math
|
import math
|
||||||
from typing import Optional, NamedTuple, Protocol, List
|
|
||||||
|
try:
|
||||||
|
from typing import Optional, NamedTuple, List, Protocol
|
||||||
|
except ImportError:
|
||||||
|
from typing import Optional, NamedTuple, List
|
||||||
|
from typing_extensions import Protocol
|
||||||
|
|
||||||
from torch import Tensor
|
from torch import Tensor
|
||||||
from typing import List
|
from typing import List
|
||||||
|
Loading…
Reference in New Issue
Block a user