From 82a5f293e4cf7398350d12e309cd3cff190c1318 Mon Sep 17 00:00:00 2001 From: cvauclair Date: Tue, 14 Mar 2023 20:37:17 -0400 Subject: [PATCH] fix: `Query.map` had no default value for `priority` (#12) --- subgrounds/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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``.