Skip to content

Commit 39c7424

Browse files
authored
Use typing_extensions
1 parent 8f86e56 commit 39c7424

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import sys
2323
from dataclasses import dataclass
2424
from pathlib import Path
25-
from typing import Any, Callable, Dict, List, Optional, Self, Union, get_args, get_origin
25+
from typing import Any, Callable, Dict, List, Optional, Union, get_args, get_origin
2626

2727
import numpy as np
2828
import PIL.Image
@@ -41,6 +41,7 @@
4141
from packaging import version
4242
from requests.exceptions import HTTPError
4343
from tqdm.auto import tqdm
44+
from typing_extensions import Self
4445

4546
from .. import __version__
4647
from ..configuration_utils import ConfigMixin

0 commit comments

Comments
 (0)