Update deprecated Python 3.8 typing (#13971)

This commit is contained in:
Harry Mellor
2025-03-02 17:34:51 -08:00
committed by GitHub
parent bf33700ecd
commit cf069aa8aa
300 changed files with 2294 additions and 2347 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: Apache-2.0
from collections.abc import Mapping, Set
from dataclasses import dataclass, field
from typing import AbstractSet, Any, Literal, Mapping, Optional
from typing import Any, Literal, Optional
import pytest
from packaging.version import Version
@@ -324,7 +325,7 @@ class HfExampleModels:
self.hf_models = hf_models
def get_supported_archs(self) -> AbstractSet[str]:
def get_supported_archs(self) -> Set[str]:
return self.hf_models.keys()
def get_hf_info(self, model_arch: str) -> _HfExamplesInfo: