Skip to content

Commit 06512a8

Browse files
authored
chore: skip typing_extensions license check (#9120)
* chore: skip typing_extensions license check * unrelated: remove unused imports to fix linting
1 parent 7135945 commit 06512a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/license_compliance.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ jobs:
4141
requirements: ${{ env.REQUIREMENTS_FILE }}
4242
fail: "Copyleft,Other,Error"
4343
# Exclusions in the vanilla distribution must be explicitly motivated
44-
#
44+
# - typing_extensions>=4.13.0 has a Python Software Foundation License 2.0 but pip-license-checker does not recognize it
45+
# (https://github.com/pilosus/pip-license-checker/issues/143)
4546
# - tqdm is MLP but there are no better alternatives
46-
exclude: "(?i)^(tqdm).*"
47+
exclude: "(?i)^(tqdm|typing_extensions).*"
4748

4849
# We keep the license inventory on FOSSA
4950
- name: Send license report to Fossa

haystack/utils/hf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
import copy
6-
import inspect
76
from enum import Enum
87
from typing import Any, Callable, Dict, List, Optional, Union
98

@@ -17,7 +16,7 @@
1716
import torch
1817

1918
with LazyImport(message="Run 'pip install \"huggingface_hub>=0.27.0\"'") as huggingface_hub_import:
20-
from huggingface_hub import HfApi, InferenceClient, model_info
19+
from huggingface_hub import HfApi, model_info
2120
from huggingface_hub.utils import RepositoryNotFoundError
2221

2322
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)