Skip to content

Commit e47c371

Browse files
mypy
1 parent d744040 commit e47c371

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mp_api/client/routes/materials/materials.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ def find_structure(
246246
for doc in mat_docs:
247247
if matcher.fit(
248248
s,
249-
doc.structure if self.use_document_model else Structure.from_dict(doc["structure"]), # type: ignore[union-attr]
249+
doc.structure if self.use_document_model else Structure.from_dict(doc["structure"]), # type: ignore
250250
):
251-
matches.append(doc.material_id.string if self.use_document_model else doc["material_id"]) # type: ignore[union-attr]
251+
matches.append(doc.material_id.string if self.use_document_model else doc["material_id"]) # type: ignore
252252
if len(matches) >= max_matches:
253253
break
254254

0 commit comments

Comments
 (0)