diff --git a/src/django_components/types.py b/src/django_components/types.py index c93cff90..37394687 100644 --- a/src/django_components/types.py +++ b/src/django_components/types.py @@ -14,12 +14,12 @@ except ImportError: def __repr__(self) -> str: return f"Annotated[{self.type_}, {self.metadata[0]!r}, {self.metadata[1]!r}]" - def __getitem__(self, params: Any) -> "Annotated": # type: ignore + def __getitem__(self, params: Any) -> "Annotated[Any, Any, Any]": # type: ignore if not isinstance(params, tuple): params = (params,) return Annotated(self.type_, *params, **self.metadata[1]) # type: ignore - def __class_getitem__(self, *params: Any) -> "Annotated": # type: ignore + def __class_getitem__(self, *params: Any) -> "Annotated[Any, Any, Any]": # type: ignore return Annotated(*params) # type: ignore