Skip to content

Commit

Permalink
fix: Query.map had no default value for priority (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvauclair authored Mar 15, 2023
1 parent dcea873 commit 82a5f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subgrounds/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ def filter_vardefs(self, predicate: Callable[[VariableDefinition], bool]) -> Que
def map(
self,
map_f: Callable[[Selection], Selection],
priority: Literal['self'] | Literal['children']
priority: Literal['self'] | Literal['children'] = "self"
) -> Query:
""" Applies the function ``map_f`` to each ``Selection`` in the current
``Query`` and returns a new ``Query`` object containing the resulting ``Selections``.
Expand Down

0 comments on commit 82a5f29

Please sign in to comment.