Skip to content

Commit 1eb25dc

Browse files
committed
typing
1 parent 54991ac commit 1eb25dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diffusers/configuration_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
import re
2525
from collections import OrderedDict
2626
from pathlib import Path
27-
from typing import Any, Dict, Tuple, Union
27+
from typing import Any, Dict, Tuple, Union, Optional, Dict
2828

2929
import numpy as np
30-
from huggingface_hub import create_repo, hf_hub_download
30+
from huggingface_hub import create_repo, hf_hub_download, DDUFEntry
3131
from huggingface_hub.utils import (
3232
EntryNotFoundError,
3333
RepositoryNotFoundError,
@@ -347,7 +347,7 @@ def load_config(
347347
_ = kwargs.pop("mirror", None)
348348
subfolder = kwargs.pop("subfolder", None)
349349
user_agent = kwargs.pop("user_agent", {})
350-
dduf_entries = kwargs.pop("dduf_entries", None)
350+
dduf_entries: Optional[Dict[str, DDUFEntry]] = kwargs.pop("dduf_entries", None)
351351

352352
user_agent = {**user_agent, "file_type": "config"}
353353
user_agent = http_user_agent(user_agent)

0 commit comments

Comments
 (0)