Skip to content

Commit 7d746a8

Browse files
add missing type hint
1 parent 84256cc commit 7d746a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch/dsl/search_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,12 +721,13 @@ def ensure_strings(
721721

722722
def ensure_strings(
723723
fields: Union[
724+
bool,
724725
str,
725726
"InstrumentedField",
726727
List[Union[str, "InstrumentedField"]],
727728
Dict[str, List[Union[str, "InstrumentedField"]]],
728729
],
729-
) -> Union[str, List[str], Dict[str, List[str]]]:
730+
) -> Union[bool, str, List[str], Dict[str, List[str]]]:
730731
if isinstance(fields, dict):
731732
return {k: ensure_strings(v) for k, v in fields.items()}
732733
elif isinstance(fields, bool):

0 commit comments

Comments
 (0)