We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d744040 commit e47c371Copy full SHA for e47c371
1 file changed
mp_api/client/routes/materials/materials.py
@@ -246,9 +246,9 @@ def find_structure(
246
for doc in mat_docs:
247
if matcher.fit(
248
s,
249
- doc.structure if self.use_document_model else Structure.from_dict(doc["structure"]), # type: ignore[union-attr]
+ doc.structure if self.use_document_model else Structure.from_dict(doc["structure"]), # type: ignore
250
):
251
- matches.append(doc.material_id.string if self.use_document_model else doc["material_id"]) # type: ignore[union-attr]
+ matches.append(doc.material_id.string if self.use_document_model else doc["material_id"]) # type: ignore
252
if len(matches) >= max_matches:
253
break
254
0 commit comments