Skip to content

Commit 787acb1

Browse files
committed
Fix Callable type annotation in filter functions
1 parent 57a4927 commit 787acb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gardenlinux/features/parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def filter(
123123
self,
124124
cname: str,
125125
ignore_excludes: bool = False,
126-
additional_filter_func: Optional[Callable[(str,), bool]] = None,
126+
additional_filter_func: Optional[Callable[[str], bool]] = None,
127127
) -> networkx.Graph:
128128
"""
129129
Filters the features graph.
@@ -169,7 +169,7 @@ def filter_as_dict(
169169
self,
170170
cname: str,
171171
ignore_excludes: bool = False,
172-
additional_filter_func: Optional[Callable[(str,), bool]] = None,
172+
additional_filter_func: Optional[Callable[[str], bool]] = None,
173173
) -> dict:
174174
"""
175175
Filters the features graph and returns it as a dict.
@@ -201,7 +201,7 @@ def filter_as_list(
201201
self,
202202
cname: str,
203203
ignore_excludes: bool = False,
204-
additional_filter_func: Optional[Callable[(str,), bool]] = None,
204+
additional_filter_func: Optional[Callable[[str], bool]] = None,
205205
) -> list:
206206
"""
207207
Filters the features graph and returns it as a list.
@@ -221,7 +221,7 @@ def filter_as_string(
221221
self,
222222
cname: str,
223223
ignore_excludes: bool = False,
224-
additional_filter_func: Optional[Callable[(str,), bool]] = None,
224+
additional_filter_func: Optional[Callable[[str], bool]] = None,
225225
) -> str:
226226
"""
227227
Filters the features graph and returns it as a string.

0 commit comments

Comments
 (0)