Skip to content

Commit 9415af5

Browse files
authored
fix for multiapi_combiner (Azure#37953)
1 parent 6030404 commit 9415af5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/azure-sdk-tools/packaging_tools/multiapi_combiner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import json
1111
import argparse
1212
from pathlib import Path
13-
from typing import Dict, Optional, List, Any, TypeVar, Callable, Set, TYPE_CHECKING
13+
from typing import Dict, Optional, List, Any, TypeVar, Callable, Set
1414

1515
from jinja2 import PackageLoader, Environment
1616

@@ -409,7 +409,7 @@ def _get_names_by_api_version(api_version: str):
409409
for m in models_and_enums:
410410
if hasattr(m.generated_class, "from_dict"):
411411
self.models[m.name] = m
412-
elif getattr(m, "__class__", None) == "azure.core._enum_meta.CaseInsensitiveEnumMeta":
412+
elif m.name != "TYPE_CHECKING":
413413
self.enums.append(m)
414414

415415
self._sort_models()

0 commit comments

Comments
 (0)