Skip to content

Commit 50cb86b

Browse files
minor typing updates
1 parent c43c5e3 commit 50cb86b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch_dsl/document_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def __init__(self, name: str, bases: Tuple[type, ...], attrs: Dict[str, Any]):
165165
fields.update(annotations.keys())
166166
field_defaults = {}
167167
for name in fields:
168-
value = None
168+
value: Any = None
169169
required = None
170170
multi = None
171171
if name in annotations:
@@ -201,7 +201,7 @@ def __init__(self, name: str, bases: Tuple[type, ...], attrs: Dict[str, Any]):
201201
field_args = [type_]
202202
elif type_ in self.type_annotation_map:
203203
# use best field type for the type hint provided
204-
field, field_kwargs = self.type_annotation_map[type_]
204+
field, field_kwargs = self.type_annotation_map[type_] # type: ignore
205205

206206
if field:
207207
field_kwargs = {

0 commit comments

Comments
 (0)