Skip to content

Commit

Permalink
minor typing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Oct 14, 2024
1 parent c43c5e3 commit 50cb86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elasticsearch_dsl/document_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__(self, name: str, bases: Tuple[type, ...], attrs: Dict[str, Any]):
fields.update(annotations.keys())
field_defaults = {}
for name in fields:
value = None
value: Any = None
required = None
multi = None
if name in annotations:
Expand Down Expand Up @@ -201,7 +201,7 @@ def __init__(self, name: str, bases: Tuple[type, ...], attrs: Dict[str, Any]):
field_args = [type_]
elif type_ in self.type_annotation_map:
# use best field type for the type hint provided
field, field_kwargs = self.type_annotation_map[type_]
field, field_kwargs = self.type_annotation_map[type_] # type: ignore

if field:
field_kwargs = {
Expand Down

0 comments on commit 50cb86b

Please sign in to comment.