Skip to content

Commit 115fefa

Browse files
authored
Add missing py.typed in autogen_ext, fix type issue in core (microsoft#4993)
1 parent c59cfdd commit 115fefa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/packages/autogen-core/src/autogen_core/_component_config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import importlib
44
import warnings
5-
from typing import Any, ClassVar, Dict, Generic, Literal, Protocol, Type, cast, overload, runtime_checkable
5+
from typing import Any, ClassVar, Dict, Generic, List, Literal, Protocol, Type, cast, overload, runtime_checkable
66

77
from pydantic import BaseModel
88
from typing_extensions import Self, TypeVar
@@ -243,9 +243,9 @@ def _from_config(cls, config: Config) -> MyComponent:
243243
return cls(value=config.value)
244244
"""
245245

246-
required_class_vars = ["component_config_schema", "component_type"]
246+
required_class_vars: ClassVar[List[str]] = ["component_config_schema", "component_type"]
247247

248-
def __init_subclass__(cls, **kwargs: Any):
248+
def __init_subclass__(cls, **kwargs: Any) -> None:
249249
super().__init_subclass__(**kwargs)
250250

251251
# TODO: validate provider is loadable

python/packages/autogen-ext/src/autogen_ext/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)