Visitar URL original
fix: suppress mypy arg-type errors for proto value_type and getattr · feast-dev/feast@e1b4786 · GitHub
Skip to content

Commit e1b4786

Browse files
nickquinn408claude
andcommitted
fix: suppress mypy arg-type errors for proto value_type and getattr
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Nick Quinn <nicholas_quinn@apple.com>
1 parent 1ec5ee7 commit e1b4786

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎sdk/python/feast/entity.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def to_proto(self) -> EntityProto:
203203

204204
spec = EntitySpecProto(
205205
name=self.name,
206-
value_type=self.value_type.value,
206+
value_type=self.value_type.value, # type: ignore[arg-type]
207207
join_key=self.join_key,
208208
description=self.description,
209209
tags=self.tags,

‎sdk/python/feast/field.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def to_proto(self) -> FieldProto:
136136
tags[NESTED_COLLECTION_INNER_TYPE_TAG] = _feast_type_to_str(self.dtype)
137137
return FieldProto(
138138
name=self.name,
139-
value_type=value_type.value,
139+
value_type=value_type.value, # type: ignore[arg-type]
140140
description=self.description,
141141
tags=tags,
142142
vector_index=self.vector_index,

‎sdk/python/feast/infra/online_stores/remote.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def _construct_online_read_api_json_request(
501501
for row in entity_keys:
502502
entity_key = row.join_keys[0]
503503
entity_values.append(
504-
getattr(row.entity_values[0], row.entity_values[0].WhichOneof("val"))
504+
getattr(row.entity_values[0], row.entity_values[0].WhichOneof("val")) # type: ignore[arg-type]
505505
)
506506

507507
return {

0 commit comments

Comments
 (0)