Skip to content

Commit f8a9885

Browse files
python 3.8 typing fix
1 parent 90434b0 commit f8a9885

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch/dsl/document_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
List,
2929
Optional,
3030
Tuple,
31+
Type,
3132
TypeVar,
3233
Union,
3334
get_args,
@@ -606,7 +607,7 @@ def to_dict(self, include_meta: bool = False, skip_empty: bool = True) -> Dict[s
606607

607608
@classmethod
608609
def _get_field_names(
609-
cls, for_esql: bool = False, nested_class: Optional[type[InnerDoc]] = None
610+
cls, for_esql: bool = False, nested_class: Optional[Type[InnerDoc]] = None
610611
) -> List[str]:
611612
"""Return the list of field names used by this document.
612613
If the document has nested objects, their fields are reported using dot

0 commit comments

Comments
 (0)