Skip to content

A programming framework for agentic AI

Add missing py.typed in autogen_ext, fix type issue in core (#4993)

Jack Gerrits115fefa13211
diff --git a/python/packages/autogen-core/src/autogen_core/_component_config.py b/python/packages/autogen-core/src/autogen_core/_component_config.py
index f5426428c..104528292 100644
--- a/python/packages/autogen-core/src/autogen_core/_component_config.py
+++ b/python/packages/autogen-core/src/autogen_core/_component_config.py
@@ -2,7 +2,7 @@ from __future__ import annotations
import importlib
import warnings
-from typing import Any, ClassVar, Dict, Generic, Literal, Protocol, Type, cast, overload, runtime_checkable
+from typing import Any, ClassVar, Dict, Generic, List, Literal, Protocol, Type, cast, overload, runtime_checkable
from pydantic import BaseModel
from typing_extensions import Self, TypeVar
@@ -243,9 +243,9 @@ class Component(ComponentConfigImpl[ConfigT], ComponentLoader, Generic[ConfigT])
return cls(value=config.value)
"""
- required_class_vars = ["component_config_schema", "component_type"]
+ required_class_vars: ClassVar[List[str]] = ["component_config_schema", "component_type"]
- def __init_subclass__(cls, **kwargs: Any):
+ def __init_subclass__(cls, **kwargs: Any) -> None:
super().__init_subclass__(**kwargs)
# TODO: validate provider is loadable
diff --git a/python/packages/autogen-ext/src/autogen_ext/py.typed b/python/packages/autogen-ext/src/autogen_ext/py.typed
new file mode 100644
index 000000000..e69de29bb