Skip to content

Commit b5747f5

Browse files
committed
Update types for systems
1 parent a9d0e6d commit b5747f5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pcs/pipeline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import inspect
22
from collections.abc import Mapping
3-
from types import FunctionType
4-
from typing import TypeAlias, TypeVar
3+
from types import Callable
4+
from typing import Any, TypeAlias, TypeVar
55

66
from pcs.component import Component
77

8-
System: TypeAlias = FunctionType
8+
System: TypeAlias = Callable[..., dict[str, Any] | None]
99

1010
T = TypeVar("T")
1111

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pipeline-component-system"
3-
version = "0.4.3"
3+
version = "0.4.4"
44
authors = [
55
{ name="Daniel Cauchi" },
66
]

0 commit comments

Comments
 (0)