Skip to content

Commit

Permalink
Add missing py.typed in autogen_ext, fix type issue in core (#4993)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits authored Jan 10, 2025
1 parent c59cfdd commit 115fefa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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
Expand Down Expand Up @@ -243,9 +243,9 @@ def _from_config(cls, config: Config) -> MyComponent:
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
Expand Down
Empty file.

0 comments on commit 115fefa

Please sign in to comment.