Skip to content

Commit 9a83ded

Browse files
committed
Remove unused generic type in Actor decorator
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 8cc06a4 commit 9a83ded

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/frequenz/sdk/actor/_decorator.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@
1212
import asyncio
1313
import inspect
1414
import logging
15-
from typing import Any, Generic, Optional, Type, TypeVar
15+
from typing import Any, Optional, Type, TypeVar
1616

1717
from frequenz.sdk._internal._asyncio import cancel_and_await
1818

1919
_logger = logging.getLogger(__name__)
2020

21-
OT = TypeVar("OT")
22-
2321

2422
def _check_run_method_exists(cls: Type[Any]) -> None:
2523
"""Check if a run method exists in the given class.
@@ -180,7 +178,7 @@ async def run(self) -> None:
180178

181179
_check_run_method_exists(cls)
182180

183-
class ActorClass(cls, BaseActor, Generic[OT]): # type: ignore
181+
class ActorClass(cls, BaseActor): # type: ignore
184182
"""A wrapper class to make an actor."""
185183

186184
def __init__(self, *args: Any, **kwargs: Any) -> None:

0 commit comments

Comments
 (0)