Skip to content

Commit 74bdf6f

Browse files
committed
remove redundant overload
1 parent 07db807 commit 74bdf6f

File tree

1 file changed

+1
-10
lines changed
  • src/data_designer/config/utils

1 file changed

+1
-10
lines changed

src/data_designer/config/utils/info.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from abc import ABC, abstractmethod
55
from enum import Enum
6-
from typing import Literal, TypeVar, overload
6+
from typing import Literal, TypeVar
77

88
from ..models import ModelConfig, ModelProvider
99
from ..sampler_params import SamplerType
@@ -40,12 +40,6 @@ def __init__(self, model_configs: list[ModelConfig]):
4040
self._sampler_params = get_sampler_params()
4141
self._model_configs = model_configs
4242

43-
@overload
44-
def display(self, info_type: Literal[InfoType.SAMPLERS], **kwargs) -> None: ...
45-
46-
@overload
47-
def display(self, info_type: Literal[InfoType.MODEL_CONFIGS], **kwargs) -> None: ...
48-
4943
def display(self, info_type: ConfigBuilderInfoType, **kwargs) -> None:
5044
"""Display information based on the provided info type.
5145
@@ -77,9 +71,6 @@ class InterfaceInfo(InfoDisplay):
7771
def __init__(self, model_providers: list[ModelProvider]):
7872
self._model_providers = model_providers
7973

80-
@overload
81-
def display(self, info_type: Literal[InfoType.MODEL_PROVIDERS], **kwargs) -> None: ...
82-
8374
def display(self, info_type: DataDesignerInfoType, **kwargs) -> None:
8475
"""Display information based on the provided info type.
8576

0 commit comments

Comments
 (0)