diff --git a/subgrounds/query.py b/subgrounds/query.py index ae00a95..d24fef3 100644 --- a/subgrounds/query.py +++ b/subgrounds/query.py @@ -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``.